rrlist 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
5
+ tmp/
6
+ .yardoc/
7
+ .rspec
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in rrlist.gemspec
4
+ gemspec
5
+
@@ -0,0 +1,158 @@
1
+ # RRList
2
+
3
+ [Docs](http://rubydoc.info/github/fddayan/rrlist/master/frames)
4
+
5
+ Inspired by `RRDTool`
6
+
7
+ Basically, you can add elements to a list, but the sizes remains constant over time.
8
+
9
+ If you add an element to to the list that is out of the range, moves the cursor forward and items at the lower indexes are lost.
10
+
11
+ For example with a list of size 5:
12
+
13
+ [1,2,3,4,5]
14
+ add 6
15
+ [2,3,4,5,6]
16
+ add 7
17
+ [3,4,5,6,7]
18
+ add 20
19
+ [nil,nil,nil,nil,20]
20
+
21
+ Install
22
+ ========
23
+
24
+ gem install rrlist
25
+
26
+ or
27
+
28
+ gem 'rrlist'
29
+
30
+ or
31
+
32
+ git clone ...
33
+ rake install
34
+
35
+ Usage
36
+ ======
37
+
38
+ ```ruby
39
+ require 'rrlist'
40
+ ```
41
+
42
+ *Basic manipulation*
43
+
44
+ ```ruby
45
+ rrlist = RRList::List.new :size => 10
46
+
47
+ rrlist.values #=> [nil, nil, nil, nil, nil, nil, nil, nil, nil, nil]
48
+
49
+ 1.upto(100) { |n| rrlist.add(n) }
50
+
51
+ rrlist.values #=> [91, 92, 93, 94, 95, 96, 97, 98, 99, 100]
52
+ rrlist.min_index #=> 91
53
+ rrlist.min_index #=> 100
54
+ rrlist.get(93) #=> 93
55
+
56
+ rrlist.add(101)
57
+
58
+ rrlist.values #=> [92, 93, 94, 95, 96, 97, 98, 99, 100, 101]
59
+ rrlist.min_index #=> 92
60
+ rrlist.min_index #=> 101
61
+
62
+ rrlist.add("any object")
63
+
64
+ rrlist.values #=> [93, 94, 95, 96, 97, 98, 99, 100, 101, "any object"]
65
+ rrlist.min_index #=> 93
66
+ rrlist.min_index #=> 102
67
+
68
+ rrlist.add_at 105, "A"
69
+ rrlist.values #=> [96, 97, 98, 99, 100, 101, "any object", nil, nil, "A"]
70
+ rrlist.min_index #=> 96
71
+ rrlist.max_index #=> 105
72
+
73
+ rrlist.add_at 2000,"B"
74
+ rrlist.add_at 105, "A"
75
+ rrlist.values #=> [nil, nil, nil, nil, nil, nil, nil, nil, nil, "B"]
76
+ rrlist.min_index #=> 1991
77
+ rrlist.max_index #=> 2000
78
+ ```
79
+
80
+ *Looping*
81
+
82
+ ```ruby
83
+ rrlist = RRList::List.new :size => 10
84
+
85
+ 1.upto(100) { |n| rrlist.add(n) }
86
+
87
+ rrlist.each { |value| ... }
88
+ rrlist.each_with_index { |value,index| puts "#{value} #{index}" }
89
+ # => 91 91
90
+ # => 92 92
91
+ ....
92
+ ```
93
+
94
+ *Ranges*
95
+
96
+ A range of indexs grouped in the same position.
97
+ For a renge of 3 for indexes 0,1,2 the value goes in position 1
98
+
99
+ ```ruby
100
+ rrlist = RRList::List.new :size => 10, :range => 3
101
+
102
+ rrlist.add_at 0, 0
103
+ rrlist.values #=> [0, nil, nil, nil, nil, nil, nil, nil, nil, nil]
104
+ rrlist.add_at 1, 1
105
+ rrlist.values #=> [1, nil, nil, nil, nil, nil, nil, nil, nil, nil]
106
+ rrlist.add_at 2, 2
107
+ rrlist.values #=> [2, nil, nil, nil, nil, nil, nil, nil, nil, nil]
108
+ rrlist.add_at 3, 3
109
+ rrlist.values #=> [2, 3, nil, nil, nil, nil, nil, nil, nil, nil]
110
+ rrlist.add_at 4, 4
111
+ rrlist.values #=> [2, 4, nil, nil, nil, nil, nil, nil, nil, nil]
112
+ rrlist.add_at 5, 5
113
+ rrlist.values #=> [2, 5, nil, nil, nil, nil, nil, nil, nil, nil]
114
+
115
+ rrlist = RRList::List.new :size => 10, :range => 5
116
+
117
+ 0.upto(100) { |n| rrlist.add(n) }
118
+
119
+ rrlist.values #=> [59, 64, 69, 74, 79, 84, 89, 94, 99, 100]
120
+ rrlist.min_index #=> 55
121
+ rrlist.max_index #=> 100
122
+ ```
123
+
124
+ *Functions*
125
+
126
+ To sum all the values added to a range
127
+
128
+ ```ruby
129
+ rrlist = RRList::List.new :size => 10, :range => 5 do |index, old_value, new_value|
130
+ (old_value||0) + new_value
131
+ end
132
+
133
+ 0.upto(100) { |n| rrlist.add(n) }
134
+
135
+ rrlist.values #=> [285, 310, 335, 360, 385, 410, 435, 460, 485, 100]
136
+ rrlist.min_index #=> 55
137
+ rrlist.max_index #=> 100
138
+ ```
139
+
140
+ *Array API*
141
+
142
+ ```ruby
143
+ rrlist = RRList::List.new :size => 10
144
+
145
+ rrlist.values #=> [nil, nil, nil, nil, nil, nil, nil, nil, nil, nil]
146
+
147
+ rrlist[1]="a"
148
+ rrlist.values #=> [nil, "a", nil, nil, nil, nil, nil, nil, nil, nil]
149
+ rrlist[1] #=> "a"
150
+
151
+ rrlist[2]="b"
152
+ rrlist.values #=> [nil, "a", "b", nil, nil, nil, nil, nil, nil, nil]
153
+ rrlist[2] #=> "b"
154
+
155
+ rrlist << "c"
156
+ rrlist.values #=> [nil, "a", "b", "c", nil, nil, nil, nil, nil, nil]
157
+ rrlist[3] #=> "c"
158
+ ```
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,555 @@
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: RRArchive
8
+
9
+ &mdash; Documentation by YARD 0.8.6.1
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#!" + escape(window.location.href);
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 (R)</a> &raquo;
35
+
36
+
37
+ <span class="title">RRArchive</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: RRArchive
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">RRArchive</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/rrlist/rrarchive.rb</dd>
98
+
99
+ </dl>
100
+ <div class="clear"></div>
101
+
102
+ <h2>Overview</h2><div class="docstring">
103
+ <div class="discussion">
104
+ <p>
105
+ Why do I need this class? What the purpose of this? Decorate RRList and add
106
+ flush ? Is in it better to pass a DiskArray object to RRlist and call flush
107
+ outisde RRList? <&#8212; Perhaps made RRArchive be a RRListComposite that
108
+ olds many RRList and controls the LifeCycle of Flush, SerDi and before_add
109
+ ?
110
+ </p>
111
+
112
+
113
+ </div>
114
+ </div>
115
+ <div class="tags">
116
+
117
+
118
+ </div>
119
+ <h2>Constant Summary</h2>
120
+
121
+ <dl class="constants">
122
+
123
+ <dt id="DEFAULT_SERDI_STRATEGY-constant" class="">DEFAULT_SERDI_STRATEGY =
124
+
125
+ </dt>
126
+ <dd><pre class="code"><span class='const'>Marshal</span></pre></dd>
127
+
128
+ </dl>
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+ <h2>
139
+ Class Method Summary
140
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
141
+ </h2>
142
+
143
+ <ul class="summary">
144
+
145
+ <li class="public ">
146
+ <span class="summary_signature">
147
+
148
+ <a href="#load-class_method" title="load (class method)">+ (Object) <strong>load</strong>(filename, options = {}) </a>
149
+
150
+
151
+
152
+ </span>
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+ <span class="summary_desc"><div class='inline'></div></span>
163
+
164
+ </li>
165
+
166
+
167
+ </ul>
168
+
169
+ <h2>
170
+ Instance Method Summary
171
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
172
+ </h2>
173
+
174
+ <ul class="summary">
175
+
176
+ <li class="public ">
177
+ <span class="summary_signature">
178
+
179
+ <a href="#add-instance_method" title="#add (instance method)">- (Object) <strong>add</strong>(value) </a>
180
+
181
+
182
+
183
+ </span>
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+ <span class="summary_desc"><div class='inline'></div></span>
194
+
195
+ </li>
196
+
197
+
198
+ <li class="public ">
199
+ <span class="summary_signature">
200
+
201
+ <a href="#add_at-instance_method" title="#add_at (instance method)">- (Object) <strong>add_at</strong>(index, value) </a>
202
+
203
+
204
+
205
+ </span>
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+ <span class="summary_desc"><div class='inline'></div></span>
216
+
217
+ </li>
218
+
219
+
220
+ <li class="public ">
221
+ <span class="summary_signature">
222
+
223
+ <a href="#flush-instance_method" title="#flush (instance method)">- (Object) <strong>flush</strong> </a>
224
+
225
+
226
+
227
+ </span>
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+ <span class="summary_desc"><div class='inline'></div></span>
238
+
239
+ </li>
240
+
241
+
242
+ <li class="public ">
243
+ <span class="summary_signature">
244
+
245
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (RRArchive) <strong>initialize</strong>(filename, options) </a>
246
+
247
+
248
+
249
+ </span>
250
+
251
+
252
+ <span class="note title constructor">constructor</span>
253
+
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+ <span class="summary_desc"><div class='inline'><p>
262
+ A new instance of RRArchive.
263
+ </p>
264
+ </div></span>
265
+
266
+ </li>
267
+
268
+
269
+ <li class="public ">
270
+ <span class="summary_signature">
271
+
272
+ <a href="#rr_list-instance_method" title="#rr_list (instance method)">- (Object) <strong>rr_list</strong> </a>
273
+
274
+
275
+
276
+ </span>
277
+
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+ <span class="summary_desc"><div class='inline'></div></span>
287
+
288
+ </li>
289
+
290
+
291
+ </ul>
292
+
293
+
294
+ <div id="constructor_details" class="method_details_list">
295
+ <h2>Constructor Details</h2>
296
+
297
+ <div class="method_details first">
298
+ <h3 class="signature first" id="initialize-instance_method">
299
+
300
+ - (<tt><span class='object_link'><a href="" title="RRArchive (class)">RRArchive</a></span></tt>) <strong>initialize</strong>(filename, options)
301
+
302
+
303
+
304
+
305
+
306
+ </h3><div class="docstring">
307
+ <div class="discussion">
308
+ <p>
309
+ A new instance of RRArchive
310
+ </p>
311
+
312
+
313
+ </div>
314
+ </div>
315
+ <div class="tags">
316
+
317
+
318
+ </div><table class="source_code">
319
+ <tr>
320
+ <td>
321
+ <pre class="lines">
322
+
323
+
324
+ 25
325
+ 26
326
+ 27
327
+ 28
328
+ 29</pre>
329
+ </td>
330
+ <td>
331
+ <pre class="code"><span class="info file"># File 'lib/rrlist/rrarchive.rb', line 25</span>
332
+
333
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_filename'>filename</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
334
+ <span class='ivar'>@rr_list</span> <span class='op'>=</span> <span class='const'>RRList</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='id identifier rubyid_options'>options</span>
335
+ <span class='ivar'>@filename</span> <span class='op'>=</span> <span class='id identifier rubyid_filename'>filename</span>
336
+ <span class='ivar'>@strategy</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:strategy</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='const'>DEFAULT_SERDI_STRATEGY</span>
337
+ <span class='kw'>end</span></pre>
338
+ </td>
339
+ </tr>
340
+ </table>
341
+ </div>
342
+
343
+ </div>
344
+
345
+
346
+ <div id="class_method_details" class="method_details_list">
347
+ <h2>Class Method Details</h2>
348
+
349
+
350
+ <div class="method_details first">
351
+ <h3 class="signature first" id="load-class_method">
352
+
353
+ + (<tt>Object</tt>) <strong>load</strong>(filename, options = {})
354
+
355
+
356
+
357
+
358
+
359
+ </h3><table class="source_code">
360
+ <tr>
361
+ <td>
362
+ <pre class="lines">
363
+
364
+
365
+ 12
366
+ 13
367
+ 14
368
+ 15
369
+ 16
370
+ 17
371
+ 18
372
+ 19
373
+ 20
374
+ 21
375
+ 22
376
+ 23</pre>
377
+ </td>
378
+ <td>
379
+ <pre class="code"><span class="info file"># File 'lib/rrlist/rrarchive.rb', line 12</span>
380
+
381
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load'>load</span><span class='lparen'>(</span><span class='id identifier rubyid_filename'>filename</span><span class='comma'>,</span><span class='id identifier rubyid_options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
382
+ <span class='id identifier rubyid_strategy'>strategy</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:strategy</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='const'>DEFAULT_SERDI_STRATEGY</span>
383
+
384
+ <span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='id identifier rubyid_strategy'>strategy</span><span class='period'>.</span><span class='id identifier rubyid_load'>load</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='id identifier rubyid_filename'>filename</span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>r</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='rparen'>)</span>
385
+
386
+ <span class='const'>RRArchive</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='id identifier rubyid_filename'>filename</span><span class='comma'>,</span>
387
+ <span class='symbol'>:size</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:size</span><span class='rbracket'>]</span><span class='comma'>,</span>
388
+ <span class='symbol'>:range</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:range</span><span class='rbracket'>]</span><span class='comma'>,</span>
389
+ <span class='symbol'>:values</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:values</span><span class='rbracket'>]</span><span class='comma'>,</span>
390
+ <span class='symbol'>:position</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:position</span><span class='rbracket'>]</span><span class='comma'>,</span>
391
+ <span class='symbol'>:overal_position</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:overal_position</span><span class='rbracket'>]</span><span class='comma'>,</span>
392
+ <span class='kw'>end</span></pre>
393
+ </td>
394
+ </tr>
395
+ </table>
396
+ </div>
397
+
398
+ </div>
399
+
400
+ <div id="instance_method_details" class="method_details_list">
401
+ <h2>Instance Method Details</h2>
402
+
403
+
404
+ <div class="method_details first">
405
+ <h3 class="signature first" id="add-instance_method">
406
+
407
+ - (<tt>Object</tt>) <strong>add</strong>(value)
408
+
409
+
410
+
411
+
412
+
413
+ </h3><table class="source_code">
414
+ <tr>
415
+ <td>
416
+ <pre class="lines">
417
+
418
+
419
+ 35
420
+ 36
421
+ 37</pre>
422
+ </td>
423
+ <td>
424
+ <pre class="code"><span class="info file"># File 'lib/rrlist/rrarchive.rb', line 35</span>
425
+
426
+ <span class='kw'>def</span> <span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
427
+ <span class='ivar'>@rr_list</span><span class='period'>.</span><span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
428
+ <span class='kw'>end</span></pre>
429
+ </td>
430
+ </tr>
431
+ </table>
432
+ </div>
433
+
434
+ <div class="method_details ">
435
+ <h3 class="signature " id="add_at-instance_method">
436
+
437
+ - (<tt>Object</tt>) <strong>add_at</strong>(index, value)
438
+
439
+
440
+
441
+
442
+
443
+ </h3><table class="source_code">
444
+ <tr>
445
+ <td>
446
+ <pre class="lines">
447
+
448
+
449
+ 31
450
+ 32
451
+ 33</pre>
452
+ </td>
453
+ <td>
454
+ <pre class="code"><span class="info file"># File 'lib/rrlist/rrarchive.rb', line 31</span>
455
+
456
+ <span class='kw'>def</span> <span class='id identifier rubyid_add_at'>add_at</span><span class='lparen'>(</span><span class='id identifier rubyid_index'>index</span><span class='comma'>,</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
457
+ <span class='ivar'>@rr_list</span><span class='period'>.</span><span class='id identifier rubyid_add_at'>add_at</span><span class='lparen'>(</span><span class='id identifier rubyid_index'>index</span><span class='comma'>,</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
458
+ <span class='kw'>end</span></pre>
459
+ </td>
460
+ </tr>
461
+ </table>
462
+ </div>
463
+
464
+ <div class="method_details ">
465
+ <h3 class="signature " id="flush-instance_method">
466
+
467
+ - (<tt>Object</tt>) <strong>flush</strong>
468
+
469
+
470
+
471
+
472
+
473
+ </h3><table class="source_code">
474
+ <tr>
475
+ <td>
476
+ <pre class="lines">
477
+
478
+
479
+ 43
480
+ 44
481
+ 45
482
+ 46
483
+ 47
484
+ 48
485
+ 49
486
+ 50
487
+ 51
488
+ 52
489
+ 53
490
+ 54
491
+ 55</pre>
492
+ </td>
493
+ <td>
494
+ <pre class="code"><span class="info file"># File 'lib/rrlist/rrarchive.rb', line 43</span>
495
+
496
+ <span class='kw'>def</span> <span class='id identifier rubyid_flush'>flush</span>
497
+ <span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='lbrace'>{</span>
498
+ <span class='label'>size:</span> <span class='id identifier rubyid_rr_list'>rr_list</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span><span class='comma'>,</span>
499
+ <span class='label'>range:</span> <span class='id identifier rubyid_rr_list'>rr_list</span><span class='period'>.</span><span class='id identifier rubyid_range'>range</span><span class='comma'>,</span>
500
+ <span class='label'>values:</span><span class='id identifier rubyid_rr_list'>rr_list</span><span class='period'>.</span><span class='id identifier rubyid_raw_values'>raw_values</span><span class='comma'>,</span>
501
+ <span class='label'>position:</span> <span class='id identifier rubyid_rr_list'>rr_list</span><span class='period'>.</span><span class='id identifier rubyid_position'>position</span><span class='comma'>,</span>
502
+ <span class='label'>overal_position:</span> <span class='id identifier rubyid_rr_list'>rr_list</span><span class='period'>.</span><span class='id identifier rubyid_overal_position'>overal_position</span>
503
+ <span class='rbrace'>}</span>
504
+
505
+ <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='ivar'>@filename</span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>w</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_f'>f</span><span class='op'>|</span>
506
+ <span class='id identifier rubyid_f'>f</span><span class='period'>.</span><span class='id identifier rubyid_write'>write</span> <span class='ivar'>@strategy</span><span class='period'>.</span><span class='id identifier rubyid_dump'>dump</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
507
+ <span class='kw'>end</span>
508
+ <span class='kw'>end</span></pre>
509
+ </td>
510
+ </tr>
511
+ </table>
512
+ </div>
513
+
514
+ <div class="method_details ">
515
+ <h3 class="signature " id="rr_list-instance_method">
516
+
517
+ - (<tt>Object</tt>) <strong>rr_list</strong>
518
+
519
+
520
+
521
+
522
+
523
+ </h3><table class="source_code">
524
+ <tr>
525
+ <td>
526
+ <pre class="lines">
527
+
528
+
529
+ 39
530
+ 40
531
+ 41</pre>
532
+ </td>
533
+ <td>
534
+ <pre class="code"><span class="info file"># File 'lib/rrlist/rrarchive.rb', line 39</span>
535
+
536
+ <span class='kw'>def</span> <span class='id identifier rubyid_rr_list'>rr_list</span>
537
+ <span class='ivar'>@rr_list</span>
538
+ <span class='kw'>end</span></pre>
539
+ </td>
540
+ </tr>
541
+ </table>
542
+ </div>
543
+
544
+ </div>
545
+
546
+ </div>
547
+
548
+ <div id="footer">
549
+ Generated on Mon May 27 09:26:44 2013 by
550
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
551
+ 0.8.6.1 (ruby-1.9.2).
552
+ </div>
553
+
554
+ </body>
555
+ </html>