mdarray 0.5.5.2-java → 0.5.6-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. checksums.yaml +4 -4
  2. data/config.rb +29 -95
  3. data/doc/BinaryOperator.html +20 -21
  4. data/doc/BitwiseOperators.html +18 -8
  5. data/doc/BitwiseOperators/BinaryAnd.html +189 -0
  6. data/doc/BitwiseOperators/BinaryLeftShift.html +189 -0
  7. data/doc/BitwiseOperators/BinaryOnesComplement.html +189 -0
  8. data/doc/BitwiseOperators/BinaryOr.html +189 -0
  9. data/doc/BitwiseOperators/BinaryRightShift.html +189 -0
  10. data/doc/BitwiseOperators/BinaryXor.html +189 -0
  11. data/doc/BooleanFunctions.html +18 -8
  12. data/doc/BooleanFunctions/And.html +189 -0
  13. data/doc/BooleanFunctions/Not.html +189 -0
  14. data/doc/BooleanFunctions/Or.html +189 -0
  15. data/doc/BooleanMDArray.html +10 -10
  16. data/doc/ByteMDArray.html +73 -14
  17. data/doc/CernDoubleFunctions.html +208 -0
  18. data/doc/CernFloatFunctions.html +208 -0
  19. data/doc/CernFunctions.html +828 -0
  20. data/doc/CernIntFunctions.html +208 -0
  21. data/doc/CernLongFunctions.html +208 -0
  22. data/doc/CharMDArray.html +181 -0
  23. data/doc/Colt.html +18 -20
  24. data/doc/ComparisonOperators.html +18 -8
  25. data/doc/ComparisonOperators/Eq.html +189 -0
  26. data/doc/ComparisonOperators/Ge.html +189 -0
  27. data/doc/ComparisonOperators/Gt.html +189 -0
  28. data/doc/ComparisonOperators/Le.html +189 -0
  29. data/doc/ComparisonOperators/Lt.html +189 -0
  30. data/doc/Const.html +107 -47
  31. data/doc/Csv.html +325 -113
  32. data/doc/Csv/Dimension.html +771 -0
  33. data/doc/Csv/Dimensions.html +654 -0
  34. data/doc/DDescriptive.html +573 -625
  35. data/doc/DoubleMDArray.html +40 -172
  36. data/doc/DoubleStatList.html +19 -20
  37. data/doc/FastBinaryOperator.html +166 -148
  38. data/doc/FastUnaryOperator.html +104 -109
  39. data/doc/FloatMDArray.html +55 -16
  40. data/doc/FunctionCreation.html +53 -273
  41. data/doc/FunctionMap.html +381 -93
  42. data/doc/GenericFunctions.html +18 -8
  43. data/doc/GenericFunctions/Null.html +187 -0
  44. data/doc/IntMDArray.html +77 -16
  45. data/doc/Java/CernJetMathTdouble/DoubleFunctions.html +120 -0
  46. data/doc/Java/CernJetMathTfloat/FloatFunctions.html +120 -0
  47. data/doc/Java/CernJetMathTint/IntFunctions.html +120 -0
  48. data/doc/Java/CernJetMathTlong/LongFunctions.html +120 -0
  49. data/doc/LazyBinaryOperator.html +714 -0
  50. data/doc/LazyMDArray.html +990 -0
  51. data/doc/LazyMDArray/BinaryComp.html +282 -0
  52. data/doc/LazyMDArray/UnaryComp.html +280 -0
  53. data/doc/LazyUnaryOperator.html +537 -0
  54. data/doc/LongMDArray.html +59 -15
  55. data/doc/MDArray.html +3223 -2181
  56. data/doc/MDArray/Counter.html +321 -1233
  57. data/doc/MDArray/IteratorFast.html +177 -116
  58. data/doc/MDArray/IteratorFastBoolean.html +37 -41
  59. data/doc/MDArray/IteratorFastByte.html +46 -39
  60. data/doc/MDArray/IteratorFastChar.html +37 -41
  61. data/doc/MDArray/IteratorFastDouble.html +37 -41
  62. data/doc/MDArray/IteratorFastFloat.html +37 -41
  63. data/doc/MDArray/IteratorFastInt.html +37 -41
  64. data/doc/MDArray/IteratorFastLong.html +37 -41
  65. data/doc/MDArray/IteratorFastShort.html +37 -41
  66. data/doc/MDArray/Section.html +561 -0
  67. data/doc/Nashorn.html +1407 -0
  68. data/doc/NetCDF.html +749 -0
  69. data/doc/NetCDF/Attribute.html +875 -0
  70. data/doc/NetCDF/AttributeWriter.html +286 -0
  71. data/doc/NetCDF/CDMNode.html +460 -0
  72. data/doc/NetCDF/Dimension.html +559 -0
  73. data/doc/NetCDF/DimensionWriter.html +642 -0
  74. data/doc/NetCDF/File.html +1593 -0
  75. data/doc/NetCDF/FileParent.html +674 -0
  76. data/doc/NetCDF/FileWriter.html +2875 -0
  77. data/doc/NetCDF/Group.html +685 -0
  78. data/doc/NetCDF/GroupWriter.html +851 -0
  79. data/doc/NetCDF/TimeVariable.html +646 -0
  80. data/doc/NetCDF/Variable.html +2994 -0
  81. data/doc/NetCDF/VariableWriter.html +420 -0
  82. data/doc/NonNumericalMDArray.html +11 -11
  83. data/doc/NumericFunctions.html +38 -30
  84. data/doc/NumericFunctions/Abs.html +189 -0
  85. data/doc/NumericFunctions/Add.html +189 -0
  86. data/doc/NumericFunctions/Ceil.html +189 -0
  87. data/doc/NumericFunctions/Cube.html +189 -0
  88. data/doc/NumericFunctions/Div.html +189 -0
  89. data/doc/NumericFunctions/Floor.html +189 -0
  90. data/doc/NumericFunctions/Fourth.html +189 -0
  91. data/doc/NumericFunctions/IsZero.html +189 -0
  92. data/doc/NumericFunctions/Max.html +189 -0
  93. data/doc/NumericFunctions/Min.html +189 -0
  94. data/doc/NumericFunctions/Mul.html +189 -0
  95. data/doc/NumericFunctions/Power.html +189 -0
  96. data/doc/NumericFunctions/Square.html +189 -0
  97. data/doc/NumericFunctions/Sub.html +189 -0
  98. data/doc/NumericFunctions/Truncate.html +189 -0
  99. data/doc/NumericalMDArray.html +14 -15
  100. data/doc/Operator.html +318 -109
  101. data/doc/Proc.html +120 -129
  102. data/doc/RubyBinaryOperator.html +66 -70
  103. data/doc/RubyFunctions.html +572 -27
  104. data/doc/RubyMath.html +18 -8
  105. data/doc/RubyMath/Acos.html +189 -0
  106. data/doc/RubyMath/Acosh.html +189 -0
  107. data/doc/RubyMath/Asin.html +189 -0
  108. data/doc/RubyMath/Asinh.html +189 -0
  109. data/doc/RubyMath/Atan.html +189 -0
  110. data/doc/RubyMath/Atan2.html +189 -0
  111. data/doc/RubyMath/Atanh.html +189 -0
  112. data/doc/RubyMath/Cbrt.html +189 -0
  113. data/doc/RubyMath/Cos.html +189 -0
  114. data/doc/RubyMath/Cosh.html +189 -0
  115. data/doc/RubyMath/Erf.html +189 -0
  116. data/doc/RubyMath/Erfc.html +189 -0
  117. data/doc/RubyMath/Exp.html +189 -0
  118. data/doc/RubyMath/Gamma.html +189 -0
  119. data/doc/RubyMath/Hypot.html +189 -0
  120. data/doc/RubyMath/Ldexp.html +189 -0
  121. data/doc/RubyMath/Log.html +189 -0
  122. data/doc/RubyMath/Log10.html +189 -0
  123. data/doc/RubyMath/Log2.html +189 -0
  124. data/doc/RubyMath/Neg.html +189 -0
  125. data/doc/RubyMath/Sin.html +189 -0
  126. data/doc/RubyMath/Sinh.html +189 -0
  127. data/doc/RubyMath/Sqrt.html +189 -0
  128. data/doc/RubyMath/Tan.html +189 -0
  129. data/doc/RubyMath/Tanh.html +189 -0
  130. data/doc/RubyStats.html +8 -8
  131. data/doc/RubyUnaryOperator.html +61 -65
  132. data/doc/ShortMDArray.html +69 -14
  133. data/doc/Sol.html +700 -0
  134. data/doc/Sol/BarChart.html +181 -0
  135. data/doc/Sol/BaseChart.html +800 -0
  136. data/doc/Sol/Bootstrap.html +1137 -0
  137. data/doc/Sol/Bridge.html +586 -0
  138. data/doc/Sol/Chart.html +1162 -0
  139. data/doc/Sol/CoordinateChart.html +679 -0
  140. data/doc/Sol/Dashboard.html +2094 -0
  141. data/doc/Sol/Dashboard/DCFX.html +786 -0
  142. data/doc/Sol/Dashboard/MyHandle.html +338 -0
  143. data/doc/Sol/Dashboard/MyService.html +202 -0
  144. data/doc/Sol/Dashboard/MyTask.html +291 -0
  145. data/doc/Sol/Interval.html +1213 -0
  146. data/doc/Sol/LineChart.html +346 -0
  147. data/doc/Sol/LinearScale.html +334 -0
  148. data/doc/Sol/Margins.html +219 -0
  149. data/doc/Sol/OrdinalScale.html +263 -0
  150. data/doc/Sol/Scale.html +462 -0
  151. data/doc/Sol/Stack.html +199 -0
  152. data/doc/Sol/TimeScale.html +397 -0
  153. data/doc/StatList.html +110 -125
  154. data/doc/StringMDArray.html +10 -10
  155. data/doc/StructureMDArray.html +10 -10
  156. data/doc/UnaryOperator.html +20 -21
  157. data/doc/UserFunction.html +51 -49
  158. data/doc/_index.html +881 -106
  159. data/doc/class_list.html +8 -3
  160. data/doc/css/style.css +2 -1
  161. data/doc/file.README.html +455 -104
  162. data/doc/file_list.html +7 -2
  163. data/doc/frames.html +5 -7
  164. data/doc/index.html +455 -104
  165. data/doc/js/app.js +7 -2
  166. data/doc/js/full_list.js +11 -3
  167. data/doc/method_list.html +3170 -1233
  168. data/doc/top-level-namespace.html +31 -8
  169. data/lib/colt/matrix/algebra.rb +5 -5
  170. data/lib/mdarray.rb +6 -3
  171. data/lib/mdarray/csv.rb +25 -5
  172. data/lib/mdarray/fast_operators.rb +1 -1
  173. data/lib/mdarray/function_creation.rb +3 -1
  174. data/lib/mdarray/hierarchy.rb +2 -0
  175. data/lib/mdarray/operators.rb +1 -1
  176. data/lib/mdarray/ruby_functions.rb +8 -4
  177. data/lib/mdarray/ruby_math.rb +0 -28
  178. data/test/colt/matrix/test_matrix2d_floatingalgebra.rb +31 -7
  179. data/test/complete.rb +4 -4
  180. data/test/mdarray/PETR4_2014.csv +249 -0
  181. data/test/mdarray/VALE_2014.csv +253 -0
  182. data/test/mdarray/VALE_PETR4.csv +501 -0
  183. data/test/mdarray/arithmetic_casting.rb +1 -0
  184. data/test/mdarray/test_access.rb +1 -0
  185. data/test/mdarray/test_boolean.rb +1 -0
  186. data/test/mdarray/test_comparison.rb +1 -0
  187. data/test/mdarray/test_complete.rb +2 -5
  188. data/test/mdarray/test_counter.rb +1 -0
  189. data/test/mdarray/test_creation.rb +1 -0
  190. data/test/mdarray/test_csv.rb +51 -0
  191. data/test/mdarray/test_error.rb +1 -0
  192. data/test/mdarray/test_non_numeric.rb +1 -1
  193. data/test/mdarray/test_operator.rb +31 -14
  194. data/test/mdarray/test_performance.rb +2 -1
  195. data/test/mdarray/test_printing.rb +1 -0
  196. data/test/mdarray/test_sections.rb +1 -0
  197. data/test/mdarray/test_shape.rb +1 -0
  198. data/test/mdarray/test_trigonometry.rb +1 -0
  199. data/test/mdarray/test_views.rb +1 -0
  200. data/vendor/mdarray.jar +0 -0
  201. data/vendor/{netcdfAll-4.5_0.jar → netcdfAll-4.6.jar} +0 -0
  202. data/vendor/slf4j-jdk14-1.7.12.jar +0 -0
  203. data/version.rb +1 -1
  204. metadata +247 -139
  205. data/lib/env.rb +0 -12
  206. data/lib/mdarray/lazy_mdarray.rb +0 -315
  207. data/lib/mdarray/lazy_operators.rb +0 -174
  208. data/test/env.rb +0 -8
  209. data/test/mdarray/test_lazy.rb +0 -306
@@ -0,0 +1,1137 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Class: Sol::Bootstrap
8
+
9
+ &mdash; Documentation by YARD 0.8.7.6
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '../';
20
+ framesUrl = "../frames.html#!Sol/Bootstrap.html";
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="../_index.html">Index (B)</a> &raquo;
35
+ <span class='title'><span class='object_link'><a href="../Sol.html" title="Sol (class)">Sol</a></span></span>
36
+ &raquo;
37
+ <span class="title">Bootstrap</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="../class_list.html">
47
+ Class List
48
+ </a>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="../method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="../file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
63
+
64
+ <iframe id="search_frame"></iframe>
65
+
66
+ <div id="content"><h1>Class: Sol::Bootstrap
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+ <dt class="r1">Inherits:</dt>
75
+ <dd class="r1">
76
+ <span class="inheritName">Object</span>
77
+
78
+ <ul class="fullTree">
79
+ <li>Object</li>
80
+
81
+ <li class="next">Sol::Bootstrap</li>
82
+
83
+ </ul>
84
+ <a href="#" class="inheritanceTree">show all</a>
85
+
86
+ </dd>
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+ <dt class="r2 last">Defined in:</dt>
97
+ <dd class="r2 last">lib/webview/bootstrap.rb</dd>
98
+
99
+ </dl>
100
+ <div class="clear"></div>
101
+
102
+ <h2>Overview</h2><div class="docstring">
103
+ <div class="discussion">
104
+
105
+ <h6 id="label-"></h6>
106
+
107
+ <h6 id="label-"></h6>
108
+
109
+
110
+ </div>
111
+ </div>
112
+ <div class="tags">
113
+
114
+
115
+ </div>
116
+
117
+
118
+
119
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
120
+ <ul class="summary">
121
+
122
+ <li class="public ">
123
+ <span class="summary_signature">
124
+
125
+ <a href="#root_grid-instance_method" title="#root_grid (instance method)">- (Object) <strong>root_grid</strong> </a>
126
+
127
+
128
+
129
+ </span>
130
+
131
+
132
+
133
+
134
+ <span class="note title readonly">readonly</span>
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+ <span class="summary_desc"><div class='inline'>
145
+ <p>Returns the value of attribute root_grid.</p>
146
+ </div></span>
147
+
148
+ </li>
149
+
150
+
151
+ <li class="public ">
152
+ <span class="summary_signature">
153
+
154
+ <a href="#specified-instance_method" title="#specified (instance method)">- (Object) <strong>specified</strong> </a>
155
+
156
+
157
+
158
+ </span>
159
+
160
+
161
+
162
+
163
+ <span class="note title readonly">readonly</span>
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+ <span class="summary_desc"><div class='inline'>
174
+ <p>Returns the value of attribute specified.</p>
175
+ </div></span>
176
+
177
+ </li>
178
+
179
+
180
+ </ul>
181
+
182
+
183
+
184
+
185
+
186
+ <h2>
187
+ Instance Method Summary
188
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
189
+ </h2>
190
+
191
+ <ul class="summary">
192
+
193
+ <li class="public ">
194
+ <span class="summary_signature">
195
+
196
+ <a href="#%5B%5D%3D-instance_method" title="#[]= (instance method)">- (Object) <strong>[]=</strong>(val) </a>
197
+
198
+
199
+
200
+ </span>
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+ <span class="summary_desc"><div class='inline'>
211
+ <p>------------------------------------------------------------------------------------.</p>
212
+ </div></span>
213
+
214
+ </li>
215
+
216
+
217
+ <li class="public ">
218
+ <span class="summary_signature">
219
+
220
+ <a href="#add_grid-instance_method" title="#add_grid (instance method)">- (Object) <strong>add_grid</strong>(grid) </a>
221
+
222
+
223
+
224
+ </span>
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+ <span class="summary_desc"><div class='inline'>
235
+ <p>------------------------------------------------------------------------------------.</p>
236
+ </div></span>
237
+
238
+ </li>
239
+
240
+
241
+ <li class="public ">
242
+ <span class="summary_signature">
243
+
244
+ <a href="#bootstrap-instance_method" title="#bootstrap (instance method)">- (Object) <strong>bootstrap</strong> </a>
245
+
246
+
247
+
248
+ </span>
249
+
250
+
251
+
252
+
253
+
254
+
255
+
256
+
257
+
258
+ <span class="summary_desc"><div class='inline'>
259
+ <p>------------------------------------------------------------------------------------.</p>
260
+ </div></span>
261
+
262
+ </li>
263
+
264
+
265
+ <li class="public ">
266
+ <span class="summary_signature">
267
+
268
+ <a href="#create_grid-instance_method" title="#create_grid (instance method)">- (Object) <strong>create_grid</strong>(charts_num, names, cols = 2) </a>
269
+
270
+
271
+
272
+ </span>
273
+
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+
282
+ <span class="summary_desc"><div class='inline'>
283
+ <p>------------------------------------------------------------------------------------
284
+ Creates a grid of the appropriate size for storing the specified number of
285
+ charts and name them.</p>
286
+ </div></span>
287
+
288
+ </li>
289
+
290
+
291
+ <li class="public ">
292
+ <span class="summary_signature">
293
+
294
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (Bootstrap) <strong>initialize</strong> </a>
295
+
296
+
297
+
298
+ </span>
299
+
300
+
301
+ <span class="note title constructor">constructor</span>
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+
310
+ <span class="summary_desc"><div class='inline'>
311
+ <p>------------------------------------------------------------------------------------.</p>
312
+ </div></span>
313
+
314
+ </li>
315
+
316
+
317
+ <li class="public ">
318
+ <span class="summary_signature">
319
+
320
+ <a href="#new_grid-instance_method" title="#new_grid (instance method)">- (Object) <strong>new_grid</strong>(shape) </a>
321
+
322
+
323
+
324
+ </span>
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+ <span class="summary_desc"><div class='inline'>
335
+ <p>------------------------------------------------------------------------------------
336
+ String MDArray is actually an Object MDArray, so, any object can be added
337
+ to it
338
+ ------------------------------------------------------------------------------------.</p>
339
+ </div></span>
340
+
341
+ </li>
342
+
343
+
344
+ <li class="public ">
345
+ <span class="summary_signature">
346
+
347
+ <a href="#specified%3F-instance_method" title="#specified? (instance method)">- (Boolean) <strong>specified?</strong> </a>
348
+
349
+
350
+
351
+ </span>
352
+
353
+
354
+
355
+
356
+
357
+
358
+
359
+
360
+
361
+ <span class="summary_desc"><div class='inline'>
362
+ <p>------------------------------------------------------------------------------------.</p>
363
+ </div></span>
364
+
365
+ </li>
366
+
367
+
368
+ <li class="public ">
369
+ <span class="summary_signature">
370
+
371
+ <a href="#title%3D-instance_method" title="#title= (instance method)">- (Object) <strong>title=</strong>(title) </a>
372
+
373
+
374
+
375
+ </span>
376
+
377
+
378
+
379
+
380
+
381
+
382
+
383
+
384
+
385
+ <span class="summary_desc"><div class='inline'>
386
+ <p>------------------------------------------------------------------------------------.</p>
387
+ </div></span>
388
+
389
+ </li>
390
+
391
+
392
+ <li class="public ">
393
+ <span class="summary_signature">
394
+
395
+ <a href="#traverse-instance_method" title="#traverse (instance method)">- (Object) <strong>traverse</strong>(grid, size, parent = &quot;container&quot;, g = 1) </a>
396
+
397
+
398
+
399
+ </span>
400
+
401
+
402
+
403
+
404
+
405
+
406
+
407
+
408
+
409
+ <span class="summary_desc"><div class='inline'>
410
+ <p>------------------------------------------------------------------------------------.</p>
411
+ </div></span>
412
+
413
+ </li>
414
+
415
+
416
+ </ul>
417
+
418
+
419
+ <div id="constructor_details" class="method_details_list">
420
+ <h2>Constructor Details</h2>
421
+
422
+ <div class="method_details first">
423
+ <h3 class="signature first" id="initialize-instance_method">
424
+
425
+ - (<tt><span class='object_link'><a href="" title="Sol::Bootstrap (class)">Bootstrap</a></span></tt>) <strong>initialize</strong>
426
+
427
+
428
+
429
+
430
+
431
+ </h3><div class="docstring">
432
+ <div class="discussion">
433
+ <hr>
434
+ <hr>
435
+
436
+
437
+ </div>
438
+ </div>
439
+ <div class="tags">
440
+
441
+
442
+ </div><table class="source_code">
443
+ <tr>
444
+ <td>
445
+ <pre class="lines">
446
+
447
+
448
+ 44
449
+ 45
450
+ 46
451
+ 47</pre>
452
+ </td>
453
+ <td>
454
+ <pre class="code"><span class="info file"># File 'lib/webview/bootstrap.rb', line 44</span>
455
+
456
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
457
+ <span class='ivar'>@specified</span> <span class='op'>=</span> <span class='kw'>false</span> <span class='comment'># scene has not yet been defined
458
+ </span> <span class='ivar'>@root_grid</span> <span class='op'>=</span> <span class='const'>MDArray</span><span class='period'>.</span><span class='id identifier rubyid_string'>string</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='comment'># base grid with one row
459
+ </span><span class='kw'>end</span></pre>
460
+ </td>
461
+ </tr>
462
+ </table>
463
+ </div>
464
+
465
+ </div>
466
+
467
+ <div id="instance_attr_details" class="attr_details">
468
+ <h2>Instance Attribute Details</h2>
469
+
470
+
471
+ <span id=""></span>
472
+ <div class="method_details first">
473
+ <h3 class="signature first" id="root_grid-instance_method">
474
+
475
+ - (<tt>Object</tt>) <strong>root_grid</strong> <span class="extras">(readonly)</span>
476
+
477
+
478
+
479
+
480
+
481
+ </h3><div class="docstring">
482
+ <div class="discussion">
483
+
484
+ <p>Returns the value of attribute root_grid</p>
485
+
486
+
487
+ </div>
488
+ </div>
489
+ <div class="tags">
490
+
491
+
492
+ </div><table class="source_code">
493
+ <tr>
494
+ <td>
495
+ <pre class="lines">
496
+
497
+
498
+ 37
499
+ 38
500
+ 39</pre>
501
+ </td>
502
+ <td>
503
+ <pre class="code"><span class="info file"># File 'lib/webview/bootstrap.rb', line 37</span>
504
+
505
+ <span class='kw'>def</span> <span class='id identifier rubyid_root_grid'>root_grid</span>
506
+ <span class='ivar'>@root_grid</span>
507
+ <span class='kw'>end</span></pre>
508
+ </td>
509
+ </tr>
510
+ </table>
511
+ </div>
512
+
513
+
514
+ <span id=""></span>
515
+ <div class="method_details ">
516
+ <h3 class="signature " id="specified-instance_method">
517
+
518
+ - (<tt>Object</tt>) <strong>specified</strong> <span class="extras">(readonly)</span>
519
+
520
+
521
+
522
+
523
+
524
+ </h3><div class="docstring">
525
+ <div class="discussion">
526
+
527
+ <p>Returns the value of attribute specified</p>
528
+
529
+
530
+ </div>
531
+ </div>
532
+ <div class="tags">
533
+
534
+
535
+ </div><table class="source_code">
536
+ <tr>
537
+ <td>
538
+ <pre class="lines">
539
+
540
+
541
+ 38
542
+ 39
543
+ 40</pre>
544
+ </td>
545
+ <td>
546
+ <pre class="code"><span class="info file"># File 'lib/webview/bootstrap.rb', line 38</span>
547
+
548
+ <span class='kw'>def</span> <span class='id identifier rubyid_specified'>specified</span>
549
+ <span class='ivar'>@specified</span>
550
+ <span class='kw'>end</span></pre>
551
+ </td>
552
+ </tr>
553
+ </table>
554
+ </div>
555
+
556
+ </div>
557
+
558
+
559
+ <div id="instance_method_details" class="method_details_list">
560
+ <h2>Instance Method Details</h2>
561
+
562
+
563
+ <div class="method_details first">
564
+ <h3 class="signature first" id="[]=-instance_method">
565
+
566
+ - (<tt>Object</tt>) <strong>[]=</strong>(val)
567
+
568
+
569
+
570
+
571
+
572
+ </h3><div class="docstring">
573
+ <div class="discussion">
574
+ <hr>
575
+ <hr>
576
+
577
+
578
+ </div>
579
+ </div>
580
+ <div class="tags">
581
+
582
+
583
+ </div><table class="source_code">
584
+ <tr>
585
+ <td>
586
+ <pre class="lines">
587
+
588
+
589
+ 61
590
+ 62
591
+ 63
592
+ 64
593
+ 65</pre>
594
+ </td>
595
+ <td>
596
+ <pre class="code"><span class="info file"># File 'lib/webview/bootstrap.rb', line 61</span>
597
+
598
+ <span class='kw'>def</span> <span class='op'>[]=</span><span class='lparen'>(</span><span class='id identifier rubyid_val'>val</span><span class='rparen'>)</span>
599
+ <span class='comment'># when a grid is assigned to the root_grid, then the scene has been specified
600
+ </span> <span class='ivar'>@specified</span> <span class='op'>=</span> <span class='kw'>true</span>
601
+ <span class='ivar'>@root_grid</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_val'>val</span>
602
+ <span class='kw'>end</span></pre>
603
+ </td>
604
+ </tr>
605
+ </table>
606
+ </div>
607
+
608
+ <div class="method_details ">
609
+ <h3 class="signature " id="add_grid-instance_method">
610
+
611
+ - (<tt>Object</tt>) <strong>add_grid</strong>(grid)
612
+
613
+
614
+
615
+
616
+
617
+ </h3><div class="docstring">
618
+ <div class="discussion">
619
+ <hr>
620
+ <hr>
621
+
622
+
623
+ </div>
624
+ </div>
625
+ <div class="tags">
626
+
627
+
628
+ </div><table class="source_code">
629
+ <tr>
630
+ <td>
631
+ <pre class="lines">
632
+
633
+
634
+ 223
635
+ 224
636
+ 225
637
+ 226</pre>
638
+ </td>
639
+ <td>
640
+ <pre class="code"><span class="info file"># File 'lib/webview/bootstrap.rb', line 223</span>
641
+
642
+ <span class='kw'>def</span> <span class='id identifier rubyid_add_grid'>add_grid</span><span class='lparen'>(</span><span class='id identifier rubyid_grid'>grid</span><span class='rparen'>)</span>
643
+ <span class='ivar'>@specified</span> <span class='op'>=</span> <span class='kw'>true</span>
644
+ <span class='ivar'>@root_grid</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_grid'>grid</span>
645
+ <span class='kw'>end</span></pre>
646
+ </td>
647
+ </tr>
648
+ </table>
649
+ </div>
650
+
651
+ <div class="method_details ">
652
+ <h3 class="signature " id="bootstrap-instance_method">
653
+
654
+ - (<tt>Object</tt>) <strong>bootstrap</strong>
655
+
656
+
657
+
658
+
659
+
660
+ </h3><div class="docstring">
661
+ <div class="discussion">
662
+ <hr>
663
+ <hr>
664
+
665
+
666
+ </div>
667
+ </div>
668
+ <div class="tags">
669
+
670
+
671
+ </div><table class="source_code">
672
+ <tr>
673
+ <td>
674
+ <pre class="lines">
675
+
676
+
677
+ 125
678
+ 126
679
+ 127
680
+ 128
681
+ 129
682
+ 130
683
+ 131
684
+ 132
685
+ 133
686
+ 134
687
+ 135
688
+ 136
689
+ 137
690
+ 138
691
+ 139
692
+ 140
693
+ 141
694
+ 142
695
+ 143
696
+ 144
697
+ 145
698
+ 146
699
+ 147
700
+ 148
701
+ 149
702
+ 150
703
+ 151
704
+ 152
705
+ 153
706
+ 154
707
+ 155</pre>
708
+ </td>
709
+ <td>
710
+ <pre class="code"><span class="info file"># File 'lib/webview/bootstrap.rb', line 125</span>
711
+
712
+ <span class='kw'>def</span> <span class='id identifier rubyid_bootstrap'>bootstrap</span>
713
+
714
+ <span class='id identifier rubyid_container'>container</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>// Add new Bootstrap Container</span><span class='tstring_end'>&quot;</span></span>
715
+ <span class='comment'># container = &quot;container = d3.select(\&quot;body\&quot;).append(\&quot;div\&quot;)&quot;
716
+ </span> <span class='id identifier rubyid_container'>container</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>container = d3.select(\&quot;last\&quot;).insert(\&quot;div\&quot;)</span><span class='tstring_end'>&quot;</span></span>
717
+ <span class='id identifier rubyid_container'>container</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>.attr(\&quot;class\&quot;, \&quot;container\&quot;)</span><span class='tstring_end'>&quot;</span></span>
718
+ <span class='id identifier rubyid_container'>container</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>.attr(\&quot;style\&quot;, \&quot;font: 12px sans-serif;\&quot;);\n\n</span><span class='tstring_end'>&quot;</span></span>
719
+
720
+ <span class='comment'># Add a title row
721
+ </span> <span class='id identifier rubyid_container'>container</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>// Add a row for the dashboard title\n</span><span class='tstring_end'>&quot;</span></span>
722
+ <span class='id identifier rubyid_container'>container</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>var title = container.append(\&quot;div\&quot;).attr(\&quot;class\&quot;, \&quot;row\&quot;);\n</span><span class='tstring_end'>&quot;</span></span>
723
+ <span class='id identifier rubyid_container'>container</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>title.attr(\&quot;class\&quot;, \&quot;col-sm-12\&quot;)</span><span class='tstring_end'>&quot;</span></span>
724
+ <span class='id identifier rubyid_container'>container</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>.attr(\&quot;id\&quot;, \&quot;title\&quot;)</span><span class='tstring_end'>&quot;</span></span>
725
+ <span class='id identifier rubyid_container'>container</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>.attr(\&quot;align\&quot;, \&quot;center\&quot;);\n</span><span class='tstring_end'>&quot;</span></span>
726
+ <span class='id identifier rubyid_container'>container</span> <span class='op'>&lt;&lt;</span> <span class='ivar'>@title</span> <span class='kw'>if</span> <span class='ivar'>@title</span>
727
+
728
+ <span class='id identifier rubyid_container'>container</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>var main = container.append(\&quot;div\&quot;).attr(\&quot;class\&quot;, \&quot;row\&quot;);\n</span><span class='tstring_end'>&quot;</span></span>
729
+ <span class='id identifier rubyid_container'>container</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>main.attr(\&quot;class\&quot;, \&quot;col-sm-12\&quot;)</span><span class='tstring_end'>&quot;</span></span>
730
+
731
+ <span class='id identifier rubyid_grid'>grid</span> <span class='op'>=</span> <span class='ivar'>@root_grid</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
732
+ <span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_grid'>grid</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>StringMDArray</span><span class='rparen'>)</span>
733
+ <span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Grid should have rank of at most 2</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_grid'>grid</span><span class='period'>.</span><span class='id identifier rubyid_get_rank'>get_rank</span> <span class='op'>&gt;</span> <span class='int'>2</span>
734
+ <span class='id identifier rubyid_container'>container</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n </span><span class='tstring_end'>&quot;</span></span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_traverse'>traverse</span><span class='lparen'>(</span><span class='id identifier rubyid_grid'>grid</span><span class='comma'>,</span> <span class='int'>12</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>main</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
735
+ <span class='kw'>elsif</span>
736
+ <span class='id identifier rubyid_p'>p</span> <span class='id identifier rubyid_grid'>grid</span>
737
+ <span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Something wrong happened! Sorry.</span><span class='tstring_end'>&quot;</span></span>
738
+ <span class='kw'>end</span>
739
+
740
+ <span class='id identifier rubyid_container'>container</span>
741
+
742
+ <span class='kw'>end</span></pre>
743
+ </td>
744
+ </tr>
745
+ </table>
746
+ </div>
747
+
748
+ <div class="method_details ">
749
+ <h3 class="signature " id="create_grid-instance_method">
750
+
751
+ - (<tt>Object</tt>) <strong>create_grid</strong>(charts_num, names, cols = 2)
752
+
753
+
754
+
755
+
756
+
757
+ </h3><div class="docstring">
758
+ <div class="discussion">
759
+ <hr>
760
+
761
+ <p>Creates a grid of the appropriate size for storing the specified number of
762
+ charts and name them. The grid will have cols columns and as many rows as
763
+ necessary to store all charts. The columns width will be as large as
764
+ possible.</p>
765
+ <hr>
766
+
767
+
768
+ </div>
769
+ </div>
770
+ <div class="tags">
771
+
772
+
773
+ </div><table class="source_code">
774
+ <tr>
775
+ <td>
776
+ <pre class="lines">
777
+
778
+
779
+ 87
780
+ 88
781
+ 89
782
+ 90
783
+ 91
784
+ 92
785
+ 93
786
+ 94
787
+ 95
788
+ 96
789
+ 97
790
+ 98
791
+ 99
792
+ 100
793
+ 101
794
+ 102
795
+ 103
796
+ 104
797
+ 105
798
+ 106
799
+ 107
800
+ 108
801
+ 109
802
+ 110
803
+ 111</pre>
804
+ </td>
805
+ <td>
806
+ <pre class="code"><span class="info file"># File 'lib/webview/bootstrap.rb', line 87</span>
807
+
808
+ <span class='kw'>def</span> <span class='id identifier rubyid_create_grid'>create_grid</span><span class='lparen'>(</span><span class='id identifier rubyid_charts_num'>charts_num</span><span class='comma'>,</span> <span class='id identifier rubyid_names'>names</span><span class='comma'>,</span> <span class='id identifier rubyid_cols'>cols</span> <span class='op'>=</span> <span class='int'>2</span><span class='rparen'>)</span>
809
+
810
+ <span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Then number of columns has to be an integer and not </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_cols'>cols</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span>
811
+ <span class='op'>!</span><span class='id identifier rubyid_cols'>cols</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Integer</span>
812
+
813
+ <span class='comment'># Not used yet...
814
+ </span> <span class='comment'># columns_width = (@max_width / cols).floor
815
+ </span> <span class='id identifier rubyid_rows'>rows</span> <span class='op'>=</span> <span class='int'>0</span>
816
+
817
+ <span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_charts_num'>charts_num</span> <span class='op'>&lt;=</span> <span class='id identifier rubyid_cols'>cols</span><span class='rparen'>)</span>
818
+ <span class='id identifier rubyid_rows'>rows</span> <span class='op'>=</span> <span class='int'>1</span>
819
+ <span class='id identifier rubyid_grid'>grid</span> <span class='op'>=</span> <span class='id identifier rubyid_new_grid'>new_grid</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='id identifier rubyid_charts_num'>charts_num</span><span class='comma'>,</span> <span class='id identifier rubyid_rows'>rows</span><span class='rbracket'>]</span><span class='rparen'>)</span>
820
+ <span class='kw'>else</span>
821
+ <span class='id identifier rubyid_rows'>rows</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_charts_num'>charts_num</span><span class='period'>.</span><span class='id identifier rubyid_to_f'>to_f</span> <span class='op'>/</span> <span class='id identifier rubyid_cols'>cols</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_ceil'>ceil</span>
822
+ <span class='id identifier rubyid_grid'>grid</span> <span class='op'>=</span> <span class='id identifier rubyid_new_grid'>new_grid</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='id identifier rubyid_rows'>rows</span><span class='comma'>,</span> <span class='id identifier rubyid_cols'>cols</span><span class='rbracket'>]</span><span class='rparen'>)</span>
823
+ <span class='kw'>end</span>
824
+
825
+ <span class='id identifier rubyid_grid'>grid</span><span class='period'>.</span><span class='id identifier rubyid_each_with_counter'>each_with_counter</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_cel'>cel</span><span class='comma'>,</span> <span class='id identifier rubyid_count'>count</span><span class='op'>|</span>
826
+ <span class='id identifier rubyid_i'>i</span> <span class='op'>=</span> <span class='id identifier rubyid_rows'>rows</span> <span class='op'>*</span> <span class='id identifier rubyid_count'>count</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span> <span class='op'>+</span> <span class='id identifier rubyid_count'>count</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span>
827
+ <span class='id identifier rubyid_grid'>grid</span><span class='lbracket'>[</span><span class='op'>*</span><span class='id identifier rubyid_count'>count</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_i'>i</span> <span class='op'>&lt;</span> <span class='id identifier rubyid_names'>names</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span><span class='rparen'>)</span><span class='op'>?</span> <span class='id identifier rubyid_names'>names</span><span class='lbracket'>[</span><span class='id identifier rubyid_i'>i</span><span class='rbracket'>]</span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>__bootstrap_empty__</span><span class='tstring_end'>&quot;</span></span>
828
+ <span class='kw'>end</span>
829
+
830
+ <span class='id identifier rubyid_add_grid'>add_grid</span><span class='lparen'>(</span><span class='id identifier rubyid_grid'>grid</span><span class='rparen'>)</span>
831
+
832
+ <span class='kw'>end</span></pre>
833
+ </td>
834
+ </tr>
835
+ </table>
836
+ </div>
837
+
838
+ <div class="method_details ">
839
+ <h3 class="signature " id="new_grid-instance_method">
840
+
841
+ - (<tt>Object</tt>) <strong>new_grid</strong>(shape)
842
+
843
+
844
+
845
+
846
+
847
+ </h3><div class="docstring">
848
+ <div class="discussion">
849
+ <hr>
850
+
851
+ <p>String MDArray is actually an Object MDArray, so, any object can be added
852
+ to it</p>
853
+ <hr>
854
+
855
+
856
+ </div>
857
+ </div>
858
+ <div class="tags">
859
+
860
+
861
+ </div><table class="source_code">
862
+ <tr>
863
+ <td>
864
+ <pre class="lines">
865
+
866
+
867
+ 71
868
+ 72
869
+ 73
870
+ 74
871
+ 75
872
+ 76
873
+ 77
874
+ 78
875
+ 79</pre>
876
+ </td>
877
+ <td>
878
+ <pre class="code"><span class="info file"># File 'lib/webview/bootstrap.rb', line 71</span>
879
+
880
+ <span class='kw'>def</span> <span class='id identifier rubyid_new_grid'>new_grid</span><span class='lparen'>(</span><span class='id identifier rubyid_shape'>shape</span><span class='rparen'>)</span>
881
+
882
+ <span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_shape'>shape</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span> <span class='op'>!=</span> <span class='int'>2</span><span class='rparen'>)</span>
883
+ <span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Grid specification invalid - rank must be 2 and not: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_shape'>shape</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
884
+ <span class='kw'>end</span>
885
+
886
+ <span class='const'>MDArray</span><span class='period'>.</span><span class='id identifier rubyid_string'>string</span><span class='lparen'>(</span><span class='id identifier rubyid_shape'>shape</span><span class='rparen'>)</span>
887
+
888
+ <span class='kw'>end</span></pre>
889
+ </td>
890
+ </tr>
891
+ </table>
892
+ </div>
893
+
894
+ <div class="method_details ">
895
+ <h3 class="signature " id="specified?-instance_method">
896
+
897
+ - (<tt>Boolean</tt>) <strong>specified?</strong>
898
+
899
+
900
+
901
+
902
+
903
+ </h3><div class="docstring">
904
+ <div class="discussion">
905
+ <hr>
906
+ <hr>
907
+
908
+
909
+ </div>
910
+ </div>
911
+ <div class="tags">
912
+
913
+ <p class="tag_title">Returns:</p>
914
+ <ul class="return">
915
+
916
+ <li>
917
+
918
+
919
+ <span class='type'>(<tt>Boolean</tt>)</span>
920
+
921
+
922
+
923
+ </li>
924
+
925
+ </ul>
926
+
927
+ </div><table class="source_code">
928
+ <tr>
929
+ <td>
930
+ <pre class="lines">
931
+
932
+
933
+ 53
934
+ 54
935
+ 55</pre>
936
+ </td>
937
+ <td>
938
+ <pre class="code"><span class="info file"># File 'lib/webview/bootstrap.rb', line 53</span>
939
+
940
+ <span class='kw'>def</span> <span class='id identifier rubyid_specified?'>specified?</span>
941
+ <span class='kw'>return</span> <span class='ivar'>@specified</span>
942
+ <span class='kw'>end</span></pre>
943
+ </td>
944
+ </tr>
945
+ </table>
946
+ </div>
947
+
948
+ <div class="method_details ">
949
+ <h3 class="signature " id="title=-instance_method">
950
+
951
+ - (<tt>Object</tt>) <strong>title=</strong>(title)
952
+
953
+
954
+
955
+
956
+
957
+ </h3><div class="docstring">
958
+ <div class="discussion">
959
+ <hr>
960
+ <hr>
961
+
962
+
963
+ </div>
964
+ </div>
965
+ <div class="tags">
966
+
967
+
968
+ </div><table class="source_code">
969
+ <tr>
970
+ <td>
971
+ <pre class="lines">
972
+
973
+
974
+ 117
975
+ 118
976
+ 119</pre>
977
+ </td>
978
+ <td>
979
+ <pre class="code"><span class="info file"># File 'lib/webview/bootstrap.rb', line 117</span>
980
+
981
+ <span class='kw'>def</span> <span class='id identifier rubyid_title='>title=</span><span class='lparen'>(</span><span class='id identifier rubyid_title'>title</span><span class='rparen'>)</span>
982
+ <span class='ivar'>@title</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>title.append(\&quot;h4\&quot;).text(\&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_title'>title</span><span class='rbrace'>}</span><span class='tstring_content'>\&quot;);</span><span class='tstring_end'>&quot;</span></span>
983
+ <span class='kw'>end</span></pre>
984
+ </td>
985
+ </tr>
986
+ </table>
987
+ </div>
988
+
989
+ <div class="method_details ">
990
+ <h3 class="signature " id="traverse-instance_method">
991
+
992
+ - (<tt>Object</tt>) <strong>traverse</strong>(grid, size, parent = &quot;container&quot;, g = 1)
993
+
994
+
995
+
996
+
997
+
998
+ </h3><div class="docstring">
999
+ <div class="discussion">
1000
+ <hr>
1001
+ <hr>
1002
+
1003
+
1004
+ </div>
1005
+ </div>
1006
+ <div class="tags">
1007
+
1008
+
1009
+ </div><table class="source_code">
1010
+ <tr>
1011
+ <td>
1012
+ <pre class="lines">
1013
+
1014
+
1015
+ 161
1016
+ 162
1017
+ 163
1018
+ 164
1019
+ 165
1020
+ 166
1021
+ 167
1022
+ 168
1023
+ 169
1024
+ 170
1025
+ 171
1026
+ 172
1027
+ 173
1028
+ 174
1029
+ 175
1030
+ 176
1031
+ 177
1032
+ 178
1033
+ 179
1034
+ 180
1035
+ 181
1036
+ 182
1037
+ 183
1038
+ 184
1039
+ 185
1040
+ 186
1041
+ 187
1042
+ 188
1043
+ 189
1044
+ 190
1045
+ 191
1046
+ 192
1047
+ 193
1048
+ 194
1049
+ 195
1050
+ 196
1051
+ 197
1052
+ 198
1053
+ 199
1054
+ 200
1055
+ 201
1056
+ 202
1057
+ 203
1058
+ 204
1059
+ 205
1060
+ 206
1061
+ 207
1062
+ 208
1063
+ 209
1064
+ 210
1065
+ 211</pre>
1066
+ </td>
1067
+ <td>
1068
+ <pre class="code"><span class="info file"># File 'lib/webview/bootstrap.rb', line 161</span>
1069
+
1070
+ <span class='kw'>def</span> <span class='id identifier rubyid_traverse'>traverse</span><span class='lparen'>(</span><span class='id identifier rubyid_grid'>grid</span><span class='comma'>,</span> <span class='id identifier rubyid_size'>size</span><span class='comma'>,</span> <span class='id identifier rubyid_parent'>parent</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>container</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_g'>g</span> <span class='op'>=</span> <span class='int'>1</span><span class='rparen'>)</span>
1071
+
1072
+ <span class='id identifier rubyid_rank'>rank</span> <span class='op'>=</span> <span class='id identifier rubyid_grid'>grid</span><span class='period'>.</span><span class='id identifier rubyid_get_rank'>get_rank</span>
1073
+ <span class='id identifier rubyid_shape'>shape</span> <span class='op'>=</span> <span class='id identifier rubyid_grid'>grid</span><span class='period'>.</span><span class='id identifier rubyid_get_shape'>get_shape</span>
1074
+ <span class='id identifier rubyid_span'>span</span> <span class='op'>=</span> <span class='id identifier rubyid_size'>size</span><span class='op'>/</span><span class='id identifier rubyid_shape'>shape</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span>
1075
+
1076
+ <span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_span'>span</span> <span class='op'>&lt;</span> <span class='int'>1</span> <span class='op'>||</span> <span class='id identifier rubyid_rank'>rank</span> <span class='op'>!=</span> <span class='int'>2</span><span class='rparen'>)</span>
1077
+ <span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Grid specification invalid with rank: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_rank'>rank</span><span class='rbrace'>}</span><span class='tstring_content'> and span </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_span'>span</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
1078
+ <span class='kw'>end</span>
1079
+
1080
+ <span class='id identifier rubyid_row'>row</span> <span class='op'>=</span> <span class='op'>-</span><span class='int'>1</span>
1081
+ <span class='id identifier rubyid_col'>col</span> <span class='op'>=</span> <span class='op'>-</span><span class='int'>1</span>
1082
+ <span class='comment'># cel = &quot;g#{g}_#{row}&quot;
1083
+ </span> <span class='comment'># container = &quot;var #{cel} = #{parent}.append(\&quot;div\&quot;).attr(\&quot;class\&quot;, \&quot;row\&quot;);\n&quot;
1084
+ </span> <span class='comment'># parent = cel
1085
+ </span> <span class='id identifier rubyid_container'>container</span> <span class='op'>=</span> <span class='const'>String</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
1086
+ <span class='id identifier rubyid_push'>push</span> <span class='op'>=</span> <span class='const'>String</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
1087
+ <span class='id identifier rubyid_row_spec'>row_spec</span> <span class='op'>=</span> <span class='const'>String</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
1088
+ <span class='id identifier rubyid_cel'>cel</span> <span class='op'>=</span> <span class='const'>String</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
1089
+
1090
+ <span class='id identifier rubyid_grid'>grid</span><span class='period'>.</span><span class='id identifier rubyid_each_with_counter'>each_with_counter</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_val'>val</span><span class='comma'>,</span> <span class='id identifier rubyid_counter'>counter</span><span class='op'>|</span>
1091
+ <span class='comment'># new row
1092
+ </span> <span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_counter'>counter</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span> <span class='op'>&gt;</span> <span class='id identifier rubyid_row'>row</span><span class='rparen'>)</span>
1093
+ <span class='id identifier rubyid_col'>col</span> <span class='op'>=</span> <span class='op'>-</span><span class='int'>1</span> <span class='comment'># reset the column counter
1094
+ </span> <span class='id identifier rubyid_row'>row</span> <span class='op'>=</span> <span class='id identifier rubyid_counter'>counter</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
1095
+ <span class='id identifier rubyid_row_spec'>row_spec</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>g</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_g'>g</span><span class='rbrace'>}</span><span class='tstring_content'>_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_row'>row</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
1096
+ <span class='id identifier rubyid_container'>container</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>var </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_row_spec'>row_spec</span><span class='rbrace'>}</span><span class='tstring_content'> = </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_parent'>parent</span><span class='rbrace'>}</span><span class='tstring_content'>.append(\&quot;div\&quot;).attr(\&quot;class\&quot;, \&quot;row\&quot;);\n</span><span class='tstring_end'>&quot;</span></span>
1097
+ <span class='comment'># cel = row_spec
1098
+ </span> <span class='comment'># parent = cel
1099
+ </span> <span class='kw'>end</span>
1100
+ <span class='comment'># new column?
1101
+ </span> <span class='comment'># if (shape[1] &gt; 1 &amp;&amp; counter[1] &gt; col)
1102
+ </span> <span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_counter'>counter</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span> <span class='op'>&gt;</span> <span class='id identifier rubyid_col'>col</span><span class='rparen'>)</span>
1103
+ <span class='id identifier rubyid_col'>col</span> <span class='op'>=</span> <span class='id identifier rubyid_counter'>counter</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span>
1104
+ <span class='id identifier rubyid_cel'>cel</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_row_spec'>row_spec</span><span class='rbrace'>}</span><span class='tstring_content'>_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_col'>col</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
1105
+ <span class='id identifier rubyid_container'>container</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>var </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_cel'>cel</span><span class='rbrace'>}</span><span class='tstring_content'> = </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_row_spec'>row_spec</span><span class='rbrace'>}</span><span class='tstring_content'>.append(\&quot;div\&quot;).attr(\&quot;class\&quot;, \&quot;col-sm-</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_span'>span</span><span class='rbrace'>}</span><span class='tstring_content'>\&quot;);\n</span><span class='tstring_end'>&quot;</span></span>
1106
+ <span class='kw'>end</span>
1107
+
1108
+ <span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_val'>val</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>String</span><span class='rparen'>)</span>
1109
+ <span class='comment'># leaf cel
1110
+ </span> <span class='id identifier rubyid_container'>container</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_cel'>cel</span><span class='rbrace'>}</span><span class='tstring_content'>.attr(\&quot;id\&quot;, \&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_val'>val</span><span class='rbrace'>}</span><span class='tstring_content'>Chart\&quot;);\n </span><span class='tstring_end'>&quot;</span></span>
1111
+ <span class='kw'>elsif</span> <span class='lparen'>(</span><span class='id identifier rubyid_val'>val</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>StringMDArray</span><span class='rparen'>)</span>
1112
+ <span class='comment'># new grid
1113
+ </span> <span class='comment'># p &quot;calling traverse with #{g + 1}&quot;
1114
+ </span> <span class='id identifier rubyid_push'>push</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_traverse'>traverse</span><span class='lparen'>(</span><span class='id identifier rubyid_val'>val</span><span class='comma'>,</span> <span class='id identifier rubyid_span'>span</span><span class='comma'>,</span> <span class='id identifier rubyid_cel'>cel</span><span class='comma'>,</span> <span class='id identifier rubyid_g'>g</span> <span class='op'>+</span> <span class='int'>1</span><span class='rparen'>)</span>
1115
+ <span class='kw'>end</span>
1116
+ <span class='kw'>end</span>
1117
+
1118
+ <span class='id identifier rubyid_container'>container</span> <span class='op'>+</span> <span class='id identifier rubyid_push'>push</span>
1119
+
1120
+ <span class='kw'>end</span></pre>
1121
+ </td>
1122
+ </tr>
1123
+ </table>
1124
+ </div>
1125
+
1126
+ </div>
1127
+
1128
+ </div>
1129
+
1130
+ <div id="footer">
1131
+ Generated on Tue Jul 14 18:09:14 2015 by
1132
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1133
+ 0.8.7.6 (ruby-1.9.3).
1134
+ </div>
1135
+
1136
+ </body>
1137
+ </html>