binaryparse 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. data/binaryparse.gemspec +17 -17
  2. data/examples/pms_input_2_test.rb +70 -0
  3. data/lib/blocker.rb +1 -1
  4. metadata +3 -66
  5. data/doc/binaryparse.chm +0 -0
  6. data/doc/bphelp.zip +0 -0
  7. data/doc/classes/BinaryBlocker/BitFieldEncoder.html +0 -328
  8. data/doc/classes/BinaryBlocker/Blocker.html +0 -168
  9. data/doc/classes/BinaryBlocker/CountedArrayEncoder.html +0 -347
  10. data/doc/classes/BinaryBlocker/Encoder.html +0 -526
  11. data/doc/classes/BinaryBlocker/FixedArrayEncoder.html +0 -278
  12. data/doc/classes/BinaryBlocker/FixedStringEncoder.html +0 -177
  13. data/doc/classes/BinaryBlocker/FixedUTF16StringEncoder.html +0 -229
  14. data/doc/classes/BinaryBlocker/GroupEncoder.html +0 -650
  15. data/doc/classes/BinaryBlocker/ListOfEncoder.html +0 -343
  16. data/doc/classes/BinaryBlocker/OneOfEncoder.html +0 -306
  17. data/doc/classes/BinaryBlocker/PackedDateEncoder.html +0 -220
  18. data/doc/classes/BinaryBlocker/PackedDateTimeEncoder.html +0 -220
  19. data/doc/classes/BinaryBlocker/PackedNumberEncoder.html +0 -231
  20. data/doc/classes/BinaryBlocker/SimpleEncoder.html +0 -284
  21. data/doc/classes/BinaryBlocker.html +0 -329
  22. data/doc/classes/BufferedIO.html +0 -324
  23. data/doc/classes/TestBlocker/BBDate.html +0 -120
  24. data/doc/classes/TestBlocker/BBList.html +0 -120
  25. data/doc/classes/TestBlocker/BBPacked.html +0 -120
  26. data/doc/classes/TestBlocker/BBString.html +0 -120
  27. data/doc/classes/TestBlocker/BBSub1.html +0 -120
  28. data/doc/classes/TestBlocker/BBSub2.html +0 -120
  29. data/doc/classes/TestBlocker/BBTest1.html +0 -120
  30. data/doc/classes/TestBlocker/BBTest2.html +0 -120
  31. data/doc/classes/TestBlocker/BBTest3.html +0 -120
  32. data/doc/classes/TestBlocker/BBTest4.html +0 -120
  33. data/doc/classes/TestBlocker/BBTest5.html +0 -120
  34. data/doc/classes/TestBlocker/BBTest6.html +0 -120
  35. data/doc/classes/TestBlocker/BBTest7.html +0 -120
  36. data/doc/classes/TestBlocker/BBTime.html +0 -120
  37. data/doc/classes/TestBlocker/BBUTF16.html +0 -120
  38. data/doc/classes/TestBlocker/ItemA.html +0 -120
  39. data/doc/classes/TestBlocker/ItemB.html +0 -120
  40. data/doc/classes/TestBlocker.html +0 -802
  41. data/doc/contents.hhc +0 -670
  42. data/doc/created.rid +0 -1
  43. data/doc/dot/f_0.dot +0 -208
  44. data/doc/dot/f_0.png +0 -0
  45. data/doc/dot/f_1.dot +0 -23
  46. data/doc/dot/f_1.png +0 -0
  47. data/doc/dot/f_2.dot +0 -32
  48. data/doc/dot/f_2.png +0 -0
  49. data/doc/dot/m_0_0.dot +0 -208
  50. data/doc/dot/m_0_0.png +0 -0
  51. data/doc/files/lib/blocker_rb.html +0 -144
  52. data/doc/files/lib/buffered_io_rb.html +0 -115
  53. data/doc/files/test/test_blocker_rb.html +0 -116
  54. data/doc/fr_class_index.html +0 -60
  55. data/doc/fr_file_index.html +0 -29
  56. data/doc/fr_method_index.html +0 -135
  57. data/doc/index.hhk +0 -599
  58. data/doc/index.html +0 -24
  59. data/doc/rdoc-style.css +0 -208
  60. data/doc/rdoc.hhp +0 -15
@@ -1,343 +0,0 @@
1
-
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: BinaryBlocker::ListOfEncoder</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">BinaryBlocker::ListOfEncoder</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/blocker_rb.html">
59
- lib/blocker.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- <a href="GroupEncoder.html">
69
- GroupEncoder
70
- </a>
71
- </td>
72
- </tr>
73
- </table>
74
- </div>
75
- <!-- banner header -->
76
-
77
- <div id="bodyContent">
78
-
79
-
80
-
81
- <div id="contextContent">
82
- <div id="diagram">
83
- <map id="map" name="map">
84
- <area shape="rect" coords="252,146,351,194" href="GroupEncoder.html" alt="GroupEncoder" />
85
- <area shape="rect" coords="27,242,123,290" href="ListOfEncoder.html" alt="ListOfEncoder" />
86
- <area shape="rect" coords="147,242,219,290" href="Blocker.html" alt="Blocker" />
87
- <area shape="rect" coords="243,242,360,290" href="FixedArrayEncoder.html" alt="FixedArrayEncoder" />
88
- <area shape="rect" coords="384,242,517,290" href="CountedArrayEncoder.html" alt="CountedArrayEncoder" />
89
- <area shape="rect" coords="683,50,755,98" href="Encoder.html" alt="Encoder" />
90
- <area shape="rect" coords="605,146,707,194" href="SimpleEncoder.html" alt="SimpleEncoder" />
91
- <area shape="rect" coords="731,146,835,194" href="BitFieldEncoder.html" alt="BitFieldEncoder" />
92
- <area shape="rect" coords="859,146,960,194" href="OneOfEncoder.html" alt="OneOfEncoder" />
93
- <area shape="rect" coords="541,242,683,290" href="PackedNumberEncoder.html" alt="PackedNumberEncoder" />
94
- <area shape="rect" coords="469,338,595,386" href="PackedDateEncoder.html" alt="PackedDateEncoder" />
95
- <area shape="rect" coords="619,338,765,386" href="PackedDateTimeEncoder.html" alt="PackedDateTimeEncoder" />
96
- <area shape="rect" coords="707,242,827,290" href="FixedStringEncoder.html" alt="FixedStringEncoder" />
97
- <area shape="rect" coords="851,242,1005,290" href="FixedUTF16StringEncoder.html" alt="FixedUTF16StringEncoder" />
98
- <area shape="rect" coords="16,16,1016,396" href="../BinaryBlocker.html" alt="BinaryBlocker" />
99
- </map>
100
- <img src="../../dot/m_0_0.png" usemap="#map" border="0" alt="Module: BinaryBlocker" />
101
- </div>
102
-
103
-
104
-
105
- </div>
106
-
107
- <div id="method-list">
108
- <h3 class="section-bar">Methods</h3>
109
-
110
- <div class="name-list">
111
- <a href="#M000033">&lt;&lt;</a>&nbsp;&nbsp;
112
- <a href="#M000031">[]</a>&nbsp;&nbsp;
113
- <a href="#M000032">[]=</a>&nbsp;&nbsp;
114
- <a href="#M000030">deblock</a>&nbsp;&nbsp;
115
- <a href="#M000029">internal_block</a>&nbsp;&nbsp;
116
- <a href="#M000035">length</a>&nbsp;&nbsp;
117
- <a href="#M000028">new</a>&nbsp;&nbsp;
118
- <a href="#M000034">size</a>&nbsp;&nbsp;
119
- </div>
120
- </div>
121
-
122
- </div>
123
-
124
-
125
- <!-- if includes -->
126
-
127
- <div id="section">
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
- <!-- if method_list -->
137
- <div id="methods">
138
- <h3 class="section-bar">Public Class methods</h3>
139
-
140
- <div id="method-M000028" class="method-detail">
141
- <a name="M000028"></a>
142
-
143
- <div class="method-heading">
144
- <a href="#M000028" class="method-signature">
145
- <span class="method-name">new</span><span class="method-args">(classes, *opts)</span>
146
- </a>
147
- </div>
148
-
149
- <div class="method-description">
150
- <p><a class="source-toggle" href="#"
151
- onclick="toggleCode('M000028-source');return false;">[Source]</a></p>
152
- <div class="method-source-code" id="M000028-source">
153
- <pre>
154
- <span class="ruby-comment cmt"># File lib/blocker.rb, line 572</span>
155
- 572: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">classes</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">opts</span>)
156
- 573: <span class="ruby-identifier">initialize_options</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">opts</span>)
157
- 574: <span class="ruby-ivar">@count</span> = <span class="ruby-value">0</span>
158
- 575: <span class="ruby-ivar">@classes</span> = <span class="ruby-identifier">classes</span>
159
- 576: <span class="ruby-ivar">@value</span> = []
160
- 577: <span class="ruby-identifier">initialize_data</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">opts</span>)
161
- 578: <span class="ruby-keyword kw">end</span>
162
- </pre>
163
- </div>
164
- </div>
165
- </div>
166
-
167
- <h3 class="section-bar">Public Instance methods</h3>
168
-
169
- <div id="method-M000033" class="method-detail">
170
- <a name="M000033"></a>
171
-
172
- <div class="method-heading">
173
- <a href="#M000033" class="method-signature">
174
- <span class="method-name">&lt;&lt;</span><span class="method-args">(val)</span>
175
- </a>
176
- </div>
177
-
178
- <div class="method-description">
179
- <p><a class="source-toggle" href="#"
180
- onclick="toggleCode('M000033-source');return false;">[Source]</a></p>
181
- <div class="method-source-code" id="M000033-source">
182
- <pre>
183
- <span class="ruby-comment cmt"># File lib/blocker.rb, line 606</span>
184
- 606: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">&lt;&lt;</span>(<span class="ruby-identifier">val</span>)
185
- 607: <span class="ruby-ivar">@value</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">val</span>
186
- 608: <span class="ruby-keyword kw">end</span>
187
- </pre>
188
- </div>
189
- </div>
190
- </div>
191
-
192
- <div id="method-M000031" class="method-detail">
193
- <a name="M000031"></a>
194
-
195
- <div class="method-heading">
196
- <a href="#M000031" class="method-signature">
197
- <span class="method-name">[]</span><span class="method-args">(offset)</span>
198
- </a>
199
- </div>
200
-
201
- <div class="method-description">
202
- <p><a class="source-toggle" href="#"
203
- onclick="toggleCode('M000031-source');return false;">[Source]</a></p>
204
- <div class="method-source-code" id="M000031-source">
205
- <pre>
206
- <span class="ruby-comment cmt"># File lib/blocker.rb, line 596</span>
207
- 596: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">offset</span>)
208
- 597: <span class="ruby-identifier">raise</span> <span class="ruby-constant">RangeError</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">&quot;Access (#{offset}) out of range (#{@value.size})&quot;</span>) <span class="ruby-keyword kw">unless</span> (<span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-ivar">@value</span>.<span class="ruby-identifier">size</span>) <span class="ruby-operator">===</span> <span class="ruby-identifier">offset</span>
209
- 598: <span class="ruby-ivar">@value</span>[<span class="ruby-identifier">offset</span>]
210
- 599: <span class="ruby-keyword kw">end</span>
211
- </pre>
212
- </div>
213
- </div>
214
- </div>
215
-
216
- <div id="method-M000032" class="method-detail">
217
- <a name="M000032"></a>
218
-
219
- <div class="method-heading">
220
- <a href="#M000032" class="method-signature">
221
- <span class="method-name">[]=</span><span class="method-args">(offset,val)</span>
222
- </a>
223
- </div>
224
-
225
- <div class="method-description">
226
- <p><a class="source-toggle" href="#"
227
- onclick="toggleCode('M000032-source');return false;">[Source]</a></p>
228
- <div class="method-source-code" id="M000032-source">
229
- <pre>
230
- <span class="ruby-comment cmt"># File lib/blocker.rb, line 601</span>
231
- 601: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]=</span>(<span class="ruby-identifier">offset</span>,<span class="ruby-identifier">val</span>)
232
- 602: <span class="ruby-identifier">raise</span> <span class="ruby-constant">RangeError</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">&quot;Access (#{offset}) out of range (#{@value.size})&quot;</span>) <span class="ruby-keyword kw">unless</span> (<span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-ivar">@value</span>.<span class="ruby-identifier">size</span>) <span class="ruby-operator">===</span> <span class="ruby-identifier">offset</span>
233
- 603: <span class="ruby-ivar">@value</span>[<span class="ruby-identifier">offset</span>] = <span class="ruby-identifier">val</span>
234
- 604: <span class="ruby-keyword kw">end</span>
235
- </pre>
236
- </div>
237
- </div>
238
- </div>
239
-
240
- <div id="method-M000030" class="method-detail">
241
- <a name="M000030"></a>
242
-
243
- <div class="method-heading">
244
- <a href="#M000030" class="method-signature">
245
- <span class="method-name">deblock</span><span class="method-args">(io)</span>
246
- </a>
247
- </div>
248
-
249
- <div class="method-description">
250
- <p><a class="source-toggle" href="#"
251
- onclick="toggleCode('M000030-source');return false;">[Source]</a></p>
252
- <div class="method-source-code" id="M000030-source">
253
- <pre>
254
- <span class="ruby-comment cmt"># File lib/blocker.rb, line 584</span>
255
- 584: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">deblock</span>(<span class="ruby-identifier">io</span>)
256
- 585: <span class="ruby-identifier">result</span> = []
257
- 586: <span class="ruby-identifier">with_guarded_io_pos</span>(<span class="ruby-identifier">io</span>) <span class="ruby-keyword kw">do</span>
258
- 587: <span class="ruby-identifier">oe</span> = <span class="ruby-constant">OneOfEncoder</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@classes</span>, <span class="ruby-ivar">@opts</span>)
259
- 588: <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">oe</span>.<span class="ruby-identifier">deblock</span>(<span class="ruby-identifier">io</span>)
260
- 589: <span class="ruby-identifier">result</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">oe</span>
261
- 590: <span class="ruby-identifier">oe</span> = <span class="ruby-constant">OneOfEncoder</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@classes</span>, <span class="ruby-ivar">@opts</span>)
262
- 591: <span class="ruby-keyword kw">end</span>
263
- 592: <span class="ruby-keyword kw">end</span>
264
- 593: <span class="ruby-ivar">@value</span> = <span class="ruby-identifier">result</span>
265
- 594: <span class="ruby-keyword kw">end</span>
266
- </pre>
267
- </div>
268
- </div>
269
- </div>
270
-
271
- <div id="method-M000029" class="method-detail">
272
- <a name="M000029"></a>
273
-
274
- <div class="method-heading">
275
- <a href="#M000029" class="method-signature">
276
- <span class="method-name">internal_block</span><span class="method-args">(val)</span>
277
- </a>
278
- </div>
279
-
280
- <div class="method-description">
281
- <p><a class="source-toggle" href="#"
282
- onclick="toggleCode('M000029-source');return false;">[Source]</a></p>
283
- <div class="method-source-code" id="M000029-source">
284
- <pre>
285
- <span class="ruby-comment cmt"># File lib/blocker.rb, line 580</span>
286
- 580: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">internal_block</span>(<span class="ruby-identifier">val</span>)
287
- 581: <span class="ruby-identifier">val</span>.<span class="ruby-identifier">inject</span>(<span class="ruby-value str">&quot;&quot;</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">r</span>, <span class="ruby-identifier">o</span><span class="ruby-operator">|</span> <span class="ruby-identifier">r</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">o</span>.<span class="ruby-identifier">block</span> }
288
- 582: <span class="ruby-keyword kw">end</span>
289
- </pre>
290
- </div>
291
- </div>
292
- </div>
293
-
294
- <div id="method-M000035" class="method-detail">
295
- <a name="M000035"></a>
296
-
297
- <div class="method-heading">
298
- <span class="method-name">length</span><span class="method-args">()</span>
299
- </div>
300
-
301
- <div class="method-description">
302
- <p>
303
- Alias for <a href="ListOfEncoder.html#M000034">size</a>
304
- </p>
305
- </div>
306
- </div>
307
-
308
- <div id="method-M000034" class="method-detail">
309
- <a name="M000034"></a>
310
-
311
- <div class="method-heading">
312
- <a href="#M000034" class="method-signature">
313
- <span class="method-name">size</span><span class="method-args">()</span>
314
- </a>
315
- </div>
316
-
317
- <div class="method-description">
318
- <p><a class="source-toggle" href="#"
319
- onclick="toggleCode('M000034-source');return false;">[Source]</a></p>
320
- <div class="method-source-code" id="M000034-source">
321
- <pre>
322
- <span class="ruby-comment cmt"># File lib/blocker.rb, line 610</span>
323
- 610: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">size</span>
324
- 611: <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">size</span>
325
- 612: <span class="ruby-keyword kw">end</span>
326
- </pre>
327
- </div>
328
- </div>
329
- </div>
330
-
331
-
332
- </div>
333
-
334
-
335
- </div>
336
-
337
-
338
- <div id="validator-badges">
339
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
340
- </div>
341
-
342
- </body>
343
- </html>
@@ -1,306 +0,0 @@
1
-
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: BinaryBlocker::OneOfEncoder</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">BinaryBlocker::OneOfEncoder</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/blocker_rb.html">
59
- lib/blocker.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- <a href="Encoder.html">
69
- Encoder
70
- </a>
71
- </td>
72
- </tr>
73
- </table>
74
- </div>
75
- <!-- banner header -->
76
-
77
- <div id="bodyContent">
78
-
79
-
80
-
81
- <div id="contextContent">
82
- <div id="diagram">
83
- <map id="map" name="map">
84
- <area shape="rect" coords="252,146,351,194" href="GroupEncoder.html" alt="GroupEncoder" />
85
- <area shape="rect" coords="27,242,123,290" href="ListOfEncoder.html" alt="ListOfEncoder" />
86
- <area shape="rect" coords="147,242,219,290" href="Blocker.html" alt="Blocker" />
87
- <area shape="rect" coords="243,242,360,290" href="FixedArrayEncoder.html" alt="FixedArrayEncoder" />
88
- <area shape="rect" coords="384,242,517,290" href="CountedArrayEncoder.html" alt="CountedArrayEncoder" />
89
- <area shape="rect" coords="683,50,755,98" href="Encoder.html" alt="Encoder" />
90
- <area shape="rect" coords="605,146,707,194" href="SimpleEncoder.html" alt="SimpleEncoder" />
91
- <area shape="rect" coords="731,146,835,194" href="BitFieldEncoder.html" alt="BitFieldEncoder" />
92
- <area shape="rect" coords="859,146,960,194" href="OneOfEncoder.html" alt="OneOfEncoder" />
93
- <area shape="rect" coords="541,242,683,290" href="PackedNumberEncoder.html" alt="PackedNumberEncoder" />
94
- <area shape="rect" coords="469,338,595,386" href="PackedDateEncoder.html" alt="PackedDateEncoder" />
95
- <area shape="rect" coords="619,338,765,386" href="PackedDateTimeEncoder.html" alt="PackedDateTimeEncoder" />
96
- <area shape="rect" coords="707,242,827,290" href="FixedStringEncoder.html" alt="FixedStringEncoder" />
97
- <area shape="rect" coords="851,242,1005,290" href="FixedUTF16StringEncoder.html" alt="FixedUTF16StringEncoder" />
98
- <area shape="rect" coords="16,16,1016,396" href="../BinaryBlocker.html" alt="BinaryBlocker" />
99
- </map>
100
- <img src="../../dot/m_0_0.png" usemap="#map" border="0" alt="Module: BinaryBlocker" />
101
- </div>
102
-
103
-
104
-
105
- </div>
106
-
107
- <div id="method-list">
108
- <h3 class="section-bar">Methods</h3>
109
-
110
- <div class="name-list">
111
- <a href="#M000077">inspect</a>&nbsp;&nbsp;
112
- <a href="#M000079">internal_block</a>&nbsp;&nbsp;
113
- <a href="#M000080">internal_deblock</a>&nbsp;&nbsp;
114
- <a href="#M000081">method_missing</a>&nbsp;&nbsp;
115
- <a href="#M000078">new</a>&nbsp;&nbsp;
116
- <a href="#M000082">valid?</a>&nbsp;&nbsp;
117
- </div>
118
- </div>
119
-
120
- </div>
121
-
122
-
123
- <!-- if includes -->
124
-
125
- <div id="section">
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
- <!-- if method_list -->
135
- <div id="methods">
136
- <h3 class="section-bar">Public Class methods</h3>
137
-
138
- <div id="method-M000078" class="method-detail">
139
- <a name="M000078"></a>
140
-
141
- <div class="method-heading">
142
- <a href="#M000078" class="method-signature">
143
- <span class="method-name">new</span><span class="method-args">(classes, *opts)</span>
144
- </a>
145
- </div>
146
-
147
- <div class="method-description">
148
- <p><a class="source-toggle" href="#"
149
- onclick="toggleCode('M000078-source');return false;">[Source]</a></p>
150
- <div class="method-source-code" id="M000078-source">
151
- <pre>
152
- <span class="ruby-comment cmt"># File lib/blocker.rb, line 500</span>
153
- 500: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">classes</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">opts</span>)
154
- 501: <span class="ruby-ivar">@classes</span> = <span class="ruby-identifier">classes</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">o</span><span class="ruby-operator">|</span> <span class="ruby-identifier">o</span>.<span class="ruby-identifier">call</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">opts</span>) }
155
- 502: <span class="ruby-ivar">@obj</span> = <span class="ruby-keyword kw">nil</span>
156
- 503: <span class="ruby-keyword kw">super</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">opts</span>)
157
- 504: <span class="ruby-keyword kw">end</span>
158
- </pre>
159
- </div>
160
- </div>
161
- </div>
162
-
163
- <h3 class="section-bar">Public Instance methods</h3>
164
-
165
- <div id="method-M000077" class="method-detail">
166
- <a name="M000077"></a>
167
-
168
- <div class="method-heading">
169
- <a href="#M000077" class="method-signature">
170
- <span class="method-name">inspect</span><span class="method-args">()</span>
171
- </a>
172
- </div>
173
-
174
- <div class="method-description">
175
- <p><a class="source-toggle" href="#"
176
- onclick="toggleCode('M000077-source');return false;">[Source]</a></p>
177
- <div class="method-source-code" id="M000077-source">
178
- <pre>
179
- <span class="ruby-comment cmt"># File lib/blocker.rb, line 496</span>
180
- 496: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>
181
- 497: <span class="ruby-node">&quot;OneOf #{@classes.join(',')} -&gt; #{@obj.class} -&gt; #{@obj.inspect}&quot;</span>
182
- 498: <span class="ruby-keyword kw">end</span>
183
- </pre>
184
- </div>
185
- </div>
186
- </div>
187
-
188
- <div id="method-M000079" class="method-detail">
189
- <a name="M000079"></a>
190
-
191
- <div class="method-heading">
192
- <a href="#M000079" class="method-signature">
193
- <span class="method-name">internal_block</span><span class="method-args">(val)</span>
194
- </a>
195
- </div>
196
-
197
- <div class="method-description">
198
- <p><a class="source-toggle" href="#"
199
- onclick="toggleCode('M000079-source');return false;">[Source]</a></p>
200
- <div class="method-source-code" id="M000079-source">
201
- <pre>
202
- <span class="ruby-comment cmt"># File lib/blocker.rb, line 506</span>
203
- 506: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">internal_block</span>(<span class="ruby-identifier">val</span>)
204
- 507: <span class="ruby-identifier">val</span>.<span class="ruby-identifier">block</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">val</span>
205
- 508: <span class="ruby-keyword kw">end</span>
206
- </pre>
207
- </div>
208
- </div>
209
- </div>
210
-
211
- <div id="method-M000080" class="method-detail">
212
- <a name="M000080"></a>
213
-
214
- <div class="method-heading">
215
- <a href="#M000080" class="method-signature">
216
- <span class="method-name">internal_deblock</span><span class="method-args">(io)</span>
217
- </a>
218
- </div>
219
-
220
- <div class="method-description">
221
- <p><a class="source-toggle" href="#"
222
- onclick="toggleCode('M000080-source');return false;">[Source]</a></p>
223
- <div class="method-source-code" id="M000080-source">
224
- <pre>
225
- <span class="ruby-comment cmt"># File lib/blocker.rb, line 510</span>
226
- 510: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">internal_deblock</span>(<span class="ruby-identifier">io</span>)
227
- 511: <span class="ruby-ivar">@obj</span> = <span class="ruby-keyword kw">nil</span>
228
- 512: <span class="ruby-identifier">with_guarded_io_pos</span>(<span class="ruby-identifier">io</span>) <span class="ruby-keyword kw">do</span>
229
- 513: <span class="ruby-ivar">@classes</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">obj</span><span class="ruby-operator">|</span>
230
- 514: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">deblock</span>(<span class="ruby-identifier">io</span>)
231
- 515: <span class="ruby-ivar">@obj</span> = <span class="ruby-identifier">obj</span>
232
- 516: <span class="ruby-keyword kw">break</span>
233
- 517: <span class="ruby-keyword kw">end</span>
234
- 518: <span class="ruby-keyword kw">false</span>
235
- 519: <span class="ruby-keyword kw">end</span>
236
- 520: <span class="ruby-keyword kw">end</span>
237
- 521: <span class="ruby-ivar">@obj</span>
238
- 522: <span class="ruby-keyword kw">end</span>
239
- </pre>
240
- </div>
241
- </div>
242
- </div>
243
-
244
- <div id="method-M000081" class="method-detail">
245
- <a name="M000081"></a>
246
-
247
- <div class="method-heading">
248
- <a href="#M000081" class="method-signature">
249
- <span class="method-name">method_missing</span><span class="method-args">(sym, *args)</span>
250
- </a>
251
- </div>
252
-
253
- <div class="method-description">
254
- <p><a class="source-toggle" href="#"
255
- onclick="toggleCode('M000081-source');return false;">[Source]</a></p>
256
- <div class="method-source-code" id="M000081-source">
257
- <pre>
258
- <span class="ruby-comment cmt"># File lib/blocker.rb, line 524</span>
259
- 524: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">sym</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
260
- 525: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@obj</span>
261
- 526: <span class="ruby-ivar">@obj</span>.<span class="ruby-identifier">send</span> <span class="ruby-identifier">sym</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>
262
- 527: <span class="ruby-keyword kw">else</span>
263
- 528: <span class="ruby-keyword kw">super</span>
264
- 529: <span class="ruby-keyword kw">end</span>
265
- 530: <span class="ruby-keyword kw">end</span>
266
- </pre>
267
- </div>
268
- </div>
269
- </div>
270
-
271
- <div id="method-M000082" class="method-detail">
272
- <a name="M000082"></a>
273
-
274
- <div class="method-heading">
275
- <a href="#M000082" class="method-signature">
276
- <span class="method-name">valid?</span><span class="method-args">()</span>
277
- </a>
278
- </div>
279
-
280
- <div class="method-description">
281
- <p><a class="source-toggle" href="#"
282
- onclick="toggleCode('M000082-source');return false;">[Source]</a></p>
283
- <div class="method-source-code" id="M000082-source">
284
- <pre>
285
- <span class="ruby-comment cmt"># File lib/blocker.rb, line 532</span>
286
- 532: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">valid?</span>
287
- 533: <span class="ruby-ivar">@obj</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-ivar">@obj</span>.<span class="ruby-identifier">valid?</span>
288
- 534: <span class="ruby-keyword kw">end</span>
289
- </pre>
290
- </div>
291
- </div>
292
- </div>
293
-
294
-
295
- </div>
296
-
297
-
298
- </div>
299
-
300
-
301
- <div id="validator-badges">
302
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
303
- </div>
304
-
305
- </body>
306
- </html>