felflame 2.0.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.mdown +4 -0
- data/Gemfile.lock +1 -1
- data/Rakefile +1 -1
- data/docs/FelFlame.html +8 -8
- data/docs/FelFlame/ComponentManager.html +82 -80
- data/docs/FelFlame/Components.html +17 -9
- data/docs/FelFlame/Entities.html +32 -34
- data/docs/FelFlame/Scenes.html +38 -36
- data/docs/FelFlame/Stage.html +8 -8
- data/docs/FelFlame/Systems.html +16 -16
- data/docs/Felflame_.html +143 -0
- data/docs/_index.html +85 -1
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +39 -39
- data/docs/file.version.html +74 -0
- data/docs/index.html +39 -39
- data/docs/method_list.html +424 -0
- data/docs/top-level-namespace.html +40 -1
- data/lib/felflame.rb +1 -1
- data/lib/felflame/version.rb +5 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ee6a6d8fe61bacc1e817ae7449c6633eb62a6d0a1e2eeb6ba1d1fa1f496e1fa
|
4
|
+
data.tar.gz: 7ce0a798ba4a83c09b452ec7fbc939ff77299d15123dc10a00ddb98b43f5cff9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb597222ff5805c3469ef6470efdc0fab3a87889225eb2272d327395cbd483111bf71d196310eb697bce65afb499cb196ac7ac3ba925f1fda84f9be9768d9852
|
7
|
+
data.tar.gz: 8025a3a8774bf7cfa8cb34b4ba97cbd11d036085573e780c30b2c2ab047996a661be65038c7d64e9bc9210a8d6d8d4d7c096a0af9d08dedb56df707b14f2b204
|
data/CHANGELOG.mdown
CHANGED
@@ -8,6 +8,10 @@
|
|
8
8
|
![Deprecated](https://img.shields.io/badge/-Deprecated-orange)
|
9
9
|
![Removed](https://img.shields.io/badge/-Removed-red)
|
10
10
|
|
11
|
+
## [3.0.0](https://github.com/realtradam/FelFlame/releases/tag/3.0.0) - 2021-07-12
|
12
|
+
![Changed](https://img.shields.io/badge/-Changed-yellow)
|
13
|
+
- The Scene alias was changed from ```FelFlame::Sce``` to ```FelFlame::Scn``` as it is more intuitive.
|
14
|
+
|
11
15
|
## [2.0.0](https://github.com/realtradam/FelFlame/releases/tag/2.0.0) - 2021-07-10
|
12
16
|
![Changed](https://img.shields.io/badge/-Changed-yellow)
|
13
17
|
- Entities and Components now reference each other using the objects themselves rather then their id's
|
data/Gemfile.lock
CHANGED
data/Rakefile
CHANGED
@@ -26,7 +26,7 @@ namespace :coverage do
|
|
26
26
|
end
|
27
27
|
|
28
28
|
YARD::Rake::YardocTask.new do |t|
|
29
|
-
t.files = ['system_manager.rb', 'component_manager.rb', 'entity_manager.rb', 'scene_manager.rb', 'stage_manager.rb', 'felflame.rb']
|
29
|
+
t.files = ['lib/felflame.rb', 'lib/felflame/*'] # ['system_manager.rb', 'component_manager.rb', 'entity_manager.rb', 'scene_manager.rb', 'stage_manager.rb', 'felflame.rb']
|
30
30
|
t.options = ['--output-dir', './docs', 'yardoc --markup=markdown|textile|rdoc(default)']
|
31
31
|
t.stats_options = ['--list-undoc']
|
32
32
|
end
|
data/docs/FelFlame.html
CHANGED
@@ -94,8 +94,8 @@
|
|
94
94
|
|
95
95
|
<dl>
|
96
96
|
<dt>Defined in:</dt>
|
97
|
-
<dd>felflame.rb<span class="defines">,<br />
|
98
|
-
|
97
|
+
<dd>lib/felflame.rb<span class="defines">,<br />
|
98
|
+
lib/felflame/scene_manager.rb,<br /> lib/felflame/stage_manager.rb,<br /> lib/felflame/entity_manager.rb,<br /> lib/felflame/system_manager.rb,<br /> lib/felflame/component_manager.rb</span>
|
99
99
|
</dd>
|
100
100
|
</dl>
|
101
101
|
|
@@ -179,7 +179,7 @@
|
|
179
179
|
</dt>
|
180
180
|
<dd><pre class="code"><span class='const'>FelFlame</span><span class='op'>::</span><span class='const'><span class='object_link'><a href="FelFlame/Systems.html" title="FelFlame::Systems (class)">Systems</a></span></span></pre></dd>
|
181
181
|
|
182
|
-
<dt id="
|
182
|
+
<dt id="Scn-constant" class="">Scn =
|
183
183
|
<div class="docstring">
|
184
184
|
<div class="discussion">
|
185
185
|
|
@@ -287,12 +287,12 @@
|
|
287
287
|
<pre class="lines">
|
288
288
|
|
289
289
|
|
290
|
-
|
291
|
-
|
292
|
-
|
290
|
+
15
|
291
|
+
16
|
292
|
+
17</pre>
|
293
293
|
</td>
|
294
294
|
<td>
|
295
|
-
<pre class="code"><span class="info file"># File 'felflame.rb', line
|
295
|
+
<pre class="code"><span class="info file"># File 'lib/felflame.rb', line 15</span>
|
296
296
|
|
297
297
|
<span class='kw'>def</span> <span class='id identifier rubyid_call'>call</span>
|
298
298
|
<span class='const'><span class='object_link'><a href="" title="FelFlame (class)">FelFlame</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="FelFlame/Stage.html" title="FelFlame::Stage (class)">Stage</a></span></span><span class='period'>.</span><span class='id identifier rubyid_call'><span class='object_link'><a href="FelFlame/Stage.html#call-class_method" title="FelFlame::Stage.call (method)">call</a></span></span>
|
@@ -307,7 +307,7 @@
|
|
307
307
|
</div>
|
308
308
|
|
309
309
|
<div id="footer">
|
310
|
-
Generated on
|
310
|
+
Generated on Mon Jul 12 18:28:27 2021 by
|
311
311
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
312
312
|
0.9.26 (ruby-2.7.3).
|
313
313
|
</div>
|
@@ -94,7 +94,7 @@
|
|
94
94
|
|
95
95
|
<dl>
|
96
96
|
<dt>Defined in:</dt>
|
97
|
-
<dd>component_manager.rb</dd>
|
97
|
+
<dd>lib/felflame/component_manager.rb</dd>
|
98
98
|
</dl>
|
99
99
|
|
100
100
|
</div>
|
@@ -617,10 +617,6 @@
|
|
617
617
|
<pre class="lines">
|
618
618
|
|
619
619
|
|
620
|
-
100
|
621
|
-
101
|
622
|
-
102
|
623
|
-
103
|
624
620
|
104
|
625
621
|
105
|
626
622
|
106
|
@@ -635,10 +631,14 @@
|
|
635
631
|
115
|
636
632
|
116
|
637
633
|
117
|
638
|
-
118
|
634
|
+
118
|
635
|
+
119
|
636
|
+
120
|
637
|
+
121
|
638
|
+
122</pre>
|
639
639
|
</td>
|
640
640
|
<td>
|
641
|
-
<pre class="code"><span class="info file"># File 'component_manager.rb', line
|
641
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/component_manager.rb', line 104</span>
|
642
642
|
|
643
643
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='op'>**</span><span class='id identifier rubyid_attrs'>attrs</span><span class='rparen'>)</span>
|
644
644
|
<span class='comment'># Prepare the object
|
@@ -710,12 +710,12 @@
|
|
710
710
|
<pre class="lines">
|
711
711
|
|
712
712
|
|
713
|
-
|
714
|
-
|
715
|
-
|
713
|
+
136
|
714
|
+
137
|
715
|
+
138</pre>
|
716
716
|
</td>
|
717
717
|
<td>
|
718
|
-
<pre class="code"><span class="info file"># File 'component_manager.rb', line
|
718
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/component_manager.rb', line 136</span>
|
719
719
|
|
720
720
|
<span class='kw'>def</span> <span class='id identifier rubyid_addition_triggers'>addition_triggers</span>
|
721
721
|
<span class='ivar'>@addition_triggers</span> <span class='op'>||=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
@@ -766,12 +766,12 @@
|
|
766
766
|
<pre class="lines">
|
767
767
|
|
768
768
|
|
769
|
-
|
770
|
-
|
771
|
-
|
769
|
+
152
|
770
|
+
153
|
771
|
+
154</pre>
|
772
772
|
</td>
|
773
773
|
<td>
|
774
|
-
<pre class="code"><span class="info file"># File 'component_manager.rb', line
|
774
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/component_manager.rb', line 152</span>
|
775
775
|
|
776
776
|
<span class='kw'>def</span> <span class='id identifier rubyid_attr_triggers'>attr_triggers</span>
|
777
777
|
<span class='ivar'>@attr_triggers</span> <span class='op'>||=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
@@ -822,12 +822,12 @@
|
|
822
822
|
<pre class="lines">
|
823
823
|
|
824
824
|
|
825
|
-
|
826
|
-
|
827
|
-
|
825
|
+
144
|
826
|
+
145
|
827
|
+
146</pre>
|
828
828
|
</td>
|
829
829
|
<td>
|
830
|
-
<pre class="code"><span class="info file"># File 'component_manager.rb', line
|
830
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/component_manager.rb', line 144</span>
|
831
831
|
|
832
832
|
<span class='kw'>def</span> <span class='id identifier rubyid_removal_triggers'>removal_triggers</span>
|
833
833
|
<span class='ivar'>@removal_triggers</span> <span class='op'>||=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
@@ -883,12 +883,12 @@
|
|
883
883
|
<pre class="lines">
|
884
884
|
|
885
885
|
|
886
|
-
|
887
|
-
|
888
|
-
|
886
|
+
81
|
887
|
+
82
|
888
|
+
83</pre>
|
889
889
|
</td>
|
890
890
|
<td>
|
891
|
-
<pre class="code"><span class="info file"># File 'component_manager.rb', line
|
891
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/component_manager.rb', line 81</span>
|
892
892
|
|
893
893
|
<span class='kw'>def</span> <span class='id identifier rubyid_addition_triggers'>addition_triggers</span>
|
894
894
|
<span class='ivar'>@addition_triggers</span> <span class='op'>||=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
@@ -939,12 +939,12 @@
|
|
939
939
|
<pre class="lines">
|
940
940
|
|
941
941
|
|
942
|
-
|
943
|
-
|
944
|
-
|
942
|
+
97
|
943
|
+
98
|
944
|
+
99</pre>
|
945
945
|
</td>
|
946
946
|
<td>
|
947
|
-
<pre class="code"><span class="info file"># File 'component_manager.rb', line
|
947
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/component_manager.rb', line 97</span>
|
948
948
|
|
949
949
|
<span class='kw'>def</span> <span class='id identifier rubyid_attr_triggers'>attr_triggers</span>
|
950
950
|
<span class='ivar'>@attr_triggers</span> <span class='op'>||=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
@@ -995,12 +995,12 @@
|
|
995
995
|
<pre class="lines">
|
996
996
|
|
997
997
|
|
998
|
-
|
999
|
-
|
1000
|
-
|
998
|
+
63
|
999
|
+
64
|
1000
|
+
65</pre>
|
1001
1001
|
</td>
|
1002
1002
|
<td>
|
1003
|
-
<pre class="code"><span class="info file"># File 'component_manager.rb', line
|
1003
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/component_manager.rb', line 63</span>
|
1004
1004
|
|
1005
1005
|
<span class='kw'>def</span> <span class='id identifier rubyid_id'>id</span>
|
1006
1006
|
<span class='ivar'>@id</span>
|
@@ -1051,12 +1051,12 @@
|
|
1051
1051
|
<pre class="lines">
|
1052
1052
|
|
1053
1053
|
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1054
|
+
89
|
1055
|
+
90
|
1056
|
+
91</pre>
|
1057
1057
|
</td>
|
1058
1058
|
<td>
|
1059
|
-
<pre class="code"><span class="info file"># File 'component_manager.rb', line
|
1059
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/component_manager.rb', line 89</span>
|
1060
1060
|
|
1061
1061
|
<span class='kw'>def</span> <span class='id identifier rubyid_removal_triggers'>removal_triggers</span>
|
1062
1062
|
<span class='ivar'>@removal_triggers</span> <span class='op'>||=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
@@ -1141,12 +1141,12 @@
|
|
1141
1141
|
<pre class="lines">
|
1142
1142
|
|
1143
1143
|
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1144
|
+
169
|
1145
|
+
170
|
1146
|
+
171</pre>
|
1147
1147
|
</td>
|
1148
1148
|
<td>
|
1149
|
-
<pre class="code"><span class="info file"># File 'component_manager.rb', line
|
1149
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/component_manager.rb', line 169</span>
|
1150
1150
|
|
1151
1151
|
<span class='kw'>def</span> <span class='op'>[]</span><span class='lparen'>(</span><span class='id identifier rubyid_component_id'>component_id</span><span class='rparen'>)</span>
|
1152
1152
|
<span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='id identifier rubyid_component_id'>component_id</span><span class='rbracket'>]</span>
|
@@ -1195,12 +1195,12 @@
|
|
1195
1195
|
<pre class="lines">
|
1196
1196
|
|
1197
1197
|
|
1198
|
-
|
1199
|
-
|
1200
|
-
|
1198
|
+
176
|
1199
|
+
177
|
1200
|
+
178</pre>
|
1201
1201
|
</td>
|
1202
1202
|
<td>
|
1203
|
-
<pre class="code"><span class="info file"># File 'component_manager.rb', line
|
1203
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/component_manager.rb', line 176</span>
|
1204
1204
|
|
1205
1205
|
<span class='kw'>def</span> <span class='id identifier rubyid_each'>each</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
1206
1206
|
<span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_compact'>compact</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
@@ -1260,18 +1260,18 @@
|
|
1260
1260
|
<pre class="lines">
|
1261
1261
|
|
1262
1262
|
|
1263
|
-
199
|
1264
|
-
200
|
1265
|
-
201
|
1266
|
-
202
|
1267
1263
|
203
|
1268
1264
|
204
|
1269
1265
|
205
|
1270
1266
|
206
|
1271
|
-
207
|
1267
|
+
207
|
1268
|
+
208
|
1269
|
+
209
|
1270
|
+
210
|
1271
|
+
211</pre>
|
1272
1272
|
</td>
|
1273
1273
|
<td>
|
1274
|
-
<pre class="code"><span class="info file"># File 'component_manager.rb', line
|
1274
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/component_manager.rb', line 203</span>
|
1275
1275
|
|
1276
1276
|
<span class='kw'>def</span> <span class='id identifier rubyid_attr_changed_trigger_systems'>attr_changed_trigger_systems</span><span class='lparen'>(</span><span class='id identifier rubyid_attr'>attr</span><span class='rparen'>)</span>
|
1277
1277
|
<span class='id identifier rubyid_systems_to_execute'>systems_to_execute</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_attr_triggers'>attr_triggers</span><span class='lbracket'>[</span><span class='id identifier rubyid_attr'>attr</span><span class='rbracket'>]</span>
|
@@ -1331,16 +1331,16 @@
|
|
1331
1331
|
<pre class="lines">
|
1332
1332
|
|
1333
1333
|
|
1334
|
-
230
|
1335
|
-
231
|
1336
|
-
232
|
1337
|
-
233
|
1338
|
-
234
|
1339
1334
|
235
|
1340
|
-
236
|
1335
|
+
236
|
1336
|
+
237
|
1337
|
+
238
|
1338
|
+
239
|
1339
|
+
240
|
1340
|
+
241</pre>
|
1341
1341
|
</td>
|
1342
1342
|
<td>
|
1343
|
-
<pre class="code"><span class="info file"># File 'component_manager.rb', line
|
1343
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/component_manager.rb', line 235</span>
|
1344
1344
|
|
1345
1345
|
<span class='kw'>def</span> <span class='id identifier rubyid_attrs'>attrs</span>
|
1346
1346
|
<span class='id identifier rubyid_return_hash'>return_hash</span> <span class='op'>=</span> <span class='id identifier rubyid_instance_variables'>instance_variables</span><span class='period'>.</span><span class='id identifier rubyid_each_with_object'>each_with_object</span><span class='lparen'>(</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_final'>final</span><span class='op'>|</span>
|
@@ -1398,10 +1398,6 @@
|
|
1398
1398
|
<pre class="lines">
|
1399
1399
|
|
1400
1400
|
|
1401
|
-
211
|
1402
|
-
212
|
1403
|
-
213
|
1404
|
-
214
|
1405
1401
|
215
|
1406
1402
|
216
|
1407
1403
|
217
|
@@ -1414,10 +1410,15 @@
|
|
1414
1410
|
224
|
1415
1411
|
225
|
1416
1412
|
226
|
1417
|
-
227
|
1413
|
+
227
|
1414
|
+
228
|
1415
|
+
229
|
1416
|
+
230
|
1417
|
+
231
|
1418
|
+
232</pre>
|
1418
1419
|
</td>
|
1419
1420
|
<td>
|
1420
|
-
<pre class="code"><span class="info file"># File 'component_manager.rb', line
|
1421
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/component_manager.rb', line 215</span>
|
1421
1422
|
|
1422
1423
|
<span class='kw'>def</span> <span class='id identifier rubyid_delete'>delete</span>
|
1423
1424
|
<span class='id identifier rubyid_addition_triggers'>addition_triggers</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_system'>system</span><span class='op'>|</span>
|
@@ -1427,9 +1428,10 @@
|
|
1427
1428
|
</span> <span class='comment'># the remove command is called, breaking the loop if it
|
1428
1429
|
</span> <span class='comment'># wasn't referencing a clone(will get Nil errors)
|
1429
1430
|
</span> <span class='id identifier rubyid_iter'>iter</span> <span class='op'>=</span> <span class='id identifier rubyid_entities'>entities</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lparen'>(</span><span class='op'>&</span><span class='symbol'>:clone</span><span class='rparen'>)</span>
|
1430
|
-
<span class='id identifier rubyid_iter'>iter</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier
|
1431
|
-
<span class='
|
1432
|
-
</span>
|
1431
|
+
<span class='id identifier rubyid_iter'>iter</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_entity'>entity</span><span class='op'>|</span>
|
1432
|
+
<span class='comment'>#FelFlame::Entities[entity_id].remove self #unless FelFlame::Entities[entity_id].nil?
|
1433
|
+
</span> <span class='id identifier rubyid_entity'>entity</span><span class='period'>.</span><span class='id identifier rubyid_remove'>remove</span> <span class='kw'>self</span>
|
1434
|
+
<span class='kw'>end</span>
|
1433
1435
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='id identifier rubyid_id'>id</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
1434
1436
|
<span class='id identifier rubyid_instance_variables'>instance_variables</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_var'>var</span><span class='op'>|</span>
|
1435
1437
|
<span class='id identifier rubyid_instance_variable_set'>instance_variable_set</span><span class='lparen'>(</span><span class='id identifier rubyid_var'>var</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
@@ -1480,12 +1482,12 @@
|
|
1480
1482
|
<pre class="lines">
|
1481
1483
|
|
1482
1484
|
|
1483
|
-
|
1484
|
-
|
1485
|
-
|
1485
|
+
189
|
1486
|
+
190
|
1487
|
+
191</pre>
|
1486
1488
|
</td>
|
1487
1489
|
<td>
|
1488
|
-
<pre class="code"><span class="info file"># File 'component_manager.rb', line
|
1490
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/component_manager.rb', line 189</span>
|
1489
1491
|
|
1490
1492
|
<span class='kw'>def</span> <span class='id identifier rubyid_entities'>entities</span>
|
1491
1493
|
<span class='ivar'>@entities</span> <span class='op'>||=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
@@ -1534,12 +1536,12 @@
|
|
1534
1536
|
<pre class="lines">
|
1535
1537
|
|
1536
1538
|
|
1537
|
-
|
1538
|
-
|
1539
|
-
|
1539
|
+
183
|
1540
|
+
184
|
1541
|
+
185</pre>
|
1540
1542
|
</td>
|
1541
1543
|
<td>
|
1542
|
-
<pre class="code"><span class="info file"># File 'component_manager.rb', line
|
1544
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/component_manager.rb', line 183</span>
|
1543
1545
|
|
1544
1546
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_i'>to_i</span>
|
1545
1547
|
<span class='id identifier rubyid_id'>id</span>
|
@@ -1593,14 +1595,14 @@
|
|
1593
1595
|
<pre class="lines">
|
1594
1596
|
|
1595
1597
|
|
1596
|
-
|
1597
|
-
|
1598
|
-
|
1599
|
-
|
1600
|
-
|
1598
|
+
195
|
1599
|
+
196
|
1600
|
+
197
|
1601
|
+
198
|
1602
|
+
199</pre>
|
1601
1603
|
</td>
|
1602
1604
|
<td>
|
1603
|
-
<pre class="code"><span class="info file"># File 'component_manager.rb', line
|
1605
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/component_manager.rb', line 195</span>
|
1604
1606
|
|
1605
1607
|
<span class='kw'>def</span> <span class='id identifier rubyid_update_attrs'>update_attrs</span><span class='lparen'>(</span><span class='op'>**</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
|
1606
1608
|
<span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='op'>|</span>
|
@@ -1617,7 +1619,7 @@
|
|
1617
1619
|
</div>
|
1618
1620
|
|
1619
1621
|
<div id="footer">
|
1620
|
-
Generated on
|
1622
|
+
Generated on Mon Jul 12 18:28:27 2021 by
|
1621
1623
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1622
1624
|
0.9.26 (ruby-2.7.3).
|
1623
1625
|
</div>
|
@@ -99,8 +99,8 @@
|
|
99
99
|
|
100
100
|
<dl>
|
101
101
|
<dt>Defined in:</dt>
|
102
|
-
<dd>felflame.rb<span class="defines">,<br />
|
103
|
-
component_manager.rb</span>
|
102
|
+
<dd>lib/felflame.rb<span class="defines">,<br />
|
103
|
+
lib/felflame/component_manager.rb</span>
|
104
104
|
</dd>
|
105
105
|
</dl>
|
106
106
|
|
@@ -231,12 +231,12 @@
|
|
231
231
|
<pre class="lines">
|
232
232
|
|
233
233
|
|
234
|
-
|
235
|
-
|
236
|
-
|
234
|
+
51
|
235
|
+
52
|
236
|
+
53</pre>
|
237
237
|
</td>
|
238
238
|
<td>
|
239
|
-
<pre class="code"><span class="info file"># File 'component_manager.rb', line
|
239
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/component_manager.rb', line 51</span>
|
240
240
|
|
241
241
|
<span class='kw'>def</span> <span class='id identifier rubyid_each'>each</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
242
242
|
<span class='id identifier rubyid_constants'>constants</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
@@ -373,10 +373,14 @@
|
|
373
373
|
40
|
374
374
|
41
|
375
375
|
42
|
376
|
-
43
|
376
|
+
43
|
377
|
+
44
|
378
|
+
45
|
379
|
+
46
|
380
|
+
47</pre>
|
377
381
|
</td>
|
378
382
|
<td>
|
379
|
-
<pre class="code"><span class="info file"># File 'component_manager.rb', line 19</span>
|
383
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/component_manager.rb', line 19</span>
|
380
384
|
|
381
385
|
<span class='kw'>def</span> <span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_component_name'>component_name</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_attrs'>attrs</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_attrs_with_defaults'>attrs_with_defaults</span><span class='rparen'>)</span>
|
382
386
|
<span class='kw'>if</span> <span class='const'><span class='object_link'><a href="../FelFlame.html" title="FelFlame (class)">FelFlame</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="FelFlame::Components (class)">Components</a></span></span><span class='period'>.</span><span class='id identifier rubyid_const_defined?'>const_defined?</span><span class='lparen'>(</span><span class='id identifier rubyid_component_name'>component_name</span><span class='rparen'>)</span>
|
@@ -385,7 +389,11 @@
|
|
385
389
|
|
386
390
|
|
387
391
|
<span class='id identifier rubyid_const_set'>const_set</span><span class='lparen'>(</span><span class='id identifier rubyid_component_name'>component_name</span><span class='comma'>,</span> <span class='const'>Class</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="../FelFlame.html" title="FelFlame (class)">FelFlame</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ComponentManager.html" title="FelFlame::ComponentManager (class)">ComponentManager</a></span></span><span class='rparen'>)</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
392
|
+
|
388
393
|
<span class='id identifier rubyid_attrs'>attrs</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_attr'>attr</span><span class='op'>|</span>
|
394
|
+
<span class='kw'>if</span> <span class='const'><span class='object_link'><a href="../FelFlame.html" title="FelFlame (class)">FelFlame</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="FelFlame::Components (class)">Components</a></span></span><span class='period'>.</span><span class='id identifier rubyid_const_get'>const_get</span><span class='lparen'>(</span><span class='id identifier rubyid_component_name'>component_name</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_method_defined?'>method_defined?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_attr'>attr</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> <span class='op'>||</span> <span class='const'><span class='object_link'><a href="../FelFlame.html" title="FelFlame (class)">FelFlame</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="FelFlame::Components (class)">Components</a></span></span><span class='period'>.</span><span class='id identifier rubyid_const_get'>const_get</span><span class='lparen'>(</span><span class='id identifier rubyid_component_name'>component_name</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_method_defined?'>method_defined?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_attr'>attr</span><span class='embexpr_end'>}</span><span class='tstring_content'>=</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
395
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>NameError</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>The attribute name \"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_attr'>attr</span><span class='embexpr_end'>}</span><span class='tstring_content'>\" is already a method</span><span class='tstring_end'>"</span></span>
|
396
|
+
<span class='kw'>end</span>
|
389
397
|
<span class='const'><span class='object_link'><a href="../FelFlame.html" title="FelFlame (class)">FelFlame</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="FelFlame::Components (class)">Components</a></span></span><span class='period'>.</span><span class='id identifier rubyid_const_get'>const_get</span><span class='lparen'>(</span><span class='id identifier rubyid_component_name'>component_name</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='id identifier rubyid_attr'>attr</span>
|
390
398
|
<span class='kw'>end</span>
|
391
399
|
<span class='id identifier rubyid_attrs_with_defaults'>attrs_with_defaults</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_attr'>attr</span><span class='comma'>,</span> <span class='id identifier rubyid__default'>_default</span><span class='op'>|</span>
|
@@ -413,7 +421,7 @@
|
|
413
421
|
</div>
|
414
422
|
|
415
423
|
<div id="footer">
|
416
|
-
Generated on
|
424
|
+
Generated on Mon Jul 12 18:28:27 2021 by
|
417
425
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
418
426
|
0.9.26 (ruby-2.7.3).
|
419
427
|
</div>
|