cartesian 0.6.0 → 0.6.2

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 (56) hide show
  1. data/History.txt +6 -0
  2. data/Manifest.txt +13 -35
  3. data/Rakefile +19 -3
  4. data/{lib → etc}/recursive.rb +0 -0
  5. data/index.html +7 -0
  6. data/lib/cartesian.rb +1 -1
  7. data/script/txt2html +4 -2
  8. data/website/doc/Array.html +172 -0
  9. data/website/doc/Cartesian.html +638 -0
  10. data/website/doc/CartesianIterator.html +672 -0
  11. data/website/doc/Enumerable.html +158 -0
  12. data/website/doc/GridSearch.html +292 -0
  13. data/website/doc/Iterable.html +306 -0
  14. data/website/doc/README_rdoc.html +220 -0
  15. data/website/doc/created.rid +4 -4
  16. data/website/doc/lib/cartesian_iterator_rb.html +52 -0
  17. data/website/doc/lib/cartesian_rb.html +56 -0
  18. data/website/doc/lib/grid_search_rb.html +52 -0
  19. data/website/doc/rdoc.css +706 -0
  20. data/website/index.html +3 -3
  21. data/website/template.html.erb +1 -1
  22. metadata +15 -37
  23. data/website/doc/classes/Array.html +0 -128
  24. data/website/doc/classes/Cartesian.html +0 -398
  25. data/website/doc/classes/Cartesian.src/M000020.html +0 -18
  26. data/website/doc/classes/Cartesian.src/M000021.html +0 -18
  27. data/website/doc/classes/Cartesian.src/M000022.html +0 -18
  28. data/website/doc/classes/Cartesian.src/M000023.html +0 -23
  29. data/website/doc/classes/Cartesian.src/M000026.html +0 -23
  30. data/website/doc/classes/Cartesian.src/M000027.html +0 -30
  31. data/website/doc/classes/CartesianIterator.html +0 -326
  32. data/website/doc/classes/CartesianIterator.src/M000001.html +0 -21
  33. data/website/doc/classes/CartesianIterator.src/M000002.html +0 -18
  34. data/website/doc/classes/CartesianIterator.src/M000003.html +0 -21
  35. data/website/doc/classes/CartesianIterator.src/M000005.html +0 -20
  36. data/website/doc/classes/CartesianIterator.src/M000008.html +0 -20
  37. data/website/doc/classes/CartesianIterator.src/M000009.html +0 -19
  38. data/website/doc/classes/CartesianIterator.src/M000012.html +0 -19
  39. data/website/doc/classes/CartesianIterator.src/M000013.html +0 -39
  40. data/website/doc/classes/Enumerable.html +0 -112
  41. data/website/doc/classes/GridSearch.html +0 -160
  42. data/website/doc/classes/GridSearch.src/M000014.html +0 -18
  43. data/website/doc/classes/GridSearch.src/M000015.html +0 -18
  44. data/website/doc/classes/Iterable.html +0 -176
  45. data/website/doc/classes/Iterable.src/M000016.html +0 -19
  46. data/website/doc/classes/Iterable.src/M000017.html +0 -19
  47. data/website/doc/classes/Iterable.src/M000018.html +0 -18
  48. data/website/doc/classes/Iterable.src/M000019.html +0 -18
  49. data/website/doc/classes/Range.html +0 -118
  50. data/website/doc/files/cartesian_iterator_rb.html +0 -101
  51. data/website/doc/files/cartesian_rb.html +0 -108
  52. data/website/doc/files/grid_search_rb.html +0 -101
  53. data/website/doc/fr_class_index.html +0 -33
  54. data/website/doc/fr_file_index.html +0 -29
  55. data/website/doc/fr_method_index.html +0 -54
  56. data/website/doc/rdoc-style.css +0 -208
@@ -0,0 +1,158 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
7
+
8
+ <title>Module: Enumerable</title>
9
+
10
+ <link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="./js/jquery.js" type="text/javascript"
13
+ charset="utf-8"></script>
14
+ <script src="./js/thickbox-compressed.js" type="text/javascript"
15
+ charset="utf-8"></script>
16
+ <script src="./js/quicksearch.js" type="text/javascript"
17
+ charset="utf-8"></script>
18
+ <script src="./js/darkfish.js" type="text/javascript"
19
+ charset="utf-8"></script>
20
+
21
+ </head>
22
+ <body class="module">
23
+
24
+ <div id="metadata">
25
+ <div id="home-metadata">
26
+ <div id="home-section" class="section">
27
+ <h3 class="section-header">
28
+ <a href="./index.html">Home</a>
29
+ <a href="./index.html#classes">Classes</a>
30
+ <a href="./index.html#methods">Methods</a>
31
+ </h3>
32
+ </div>
33
+ </div>
34
+
35
+ <div id="file-metadata">
36
+ <div id="file-list-section" class="section">
37
+ <h3 class="section-header">In Files</h3>
38
+ <div class="section-body">
39
+ <ul>
40
+
41
+ <li><a href="./lib/grid_search_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
42
+ class="thickbox" title="lib/grid_search.rb">lib/grid_search.rb</a></li>
43
+
44
+ </ul>
45
+ </div>
46
+ </div>
47
+
48
+
49
+ </div>
50
+
51
+ <div id="class-metadata">
52
+
53
+ <!-- Parent Class -->
54
+
55
+
56
+ <!-- Namespace Contents -->
57
+
58
+
59
+ <!-- Method Quickref -->
60
+
61
+
62
+ <!-- Included Modules -->
63
+
64
+ <div id="includes-section" class="section">
65
+ <h3 class="section-header">Included Modules</h3>
66
+ <ul class="link-list">
67
+
68
+
69
+ <li><a class="include" href="GridSearch.html">GridSearch</a></li>
70
+
71
+
72
+ </ul>
73
+ </div>
74
+
75
+ </div>
76
+
77
+ <div id="project-metadata">
78
+
79
+
80
+ <div id="fileindex-section" class="section project-section">
81
+ <h3 class="section-header">Files</h3>
82
+ <ul>
83
+
84
+ <li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
85
+
86
+ </ul>
87
+ </div>
88
+
89
+
90
+ <div id="classindex-section" class="section project-section">
91
+ <h3 class="section-header">Class Index
92
+ <span class="search-toggle"><img src="./images/find.png"
93
+ height="16" width="16" alt="[+]"
94
+ title="show/hide quicksearch" /></span></h3>
95
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
96
+ <fieldset>
97
+ <legend>Quicksearch</legend>
98
+ <input type="text" name="quicksearch" value=""
99
+ class="quicksearch-field" />
100
+ </fieldset>
101
+ </form>
102
+
103
+ <ul class="link-list">
104
+
105
+ <li><a href="./Array.html">Array</a></li>
106
+
107
+ <li><a href="./Cartesian.html">Cartesian</a></li>
108
+
109
+ <li><a href="./CartesianIterator.html">CartesianIterator</a></li>
110
+
111
+ <li><a href="./Enumerable.html">Enumerable</a></li>
112
+
113
+ <li><a href="./GridSearch.html">GridSearch</a></li>
114
+
115
+ <li><a href="./Iterable.html">Iterable</a></li>
116
+
117
+ </ul>
118
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
119
+ </div>
120
+
121
+
122
+ </div>
123
+ </div>
124
+
125
+ <div id="documentation">
126
+ <h1 class="module">Enumerable</h1>
127
+
128
+ <div id="description">
129
+
130
+ </div>
131
+
132
+ <!-- Constants -->
133
+
134
+
135
+ <!-- Attributes -->
136
+
137
+
138
+ <!-- Methods -->
139
+
140
+
141
+ </div>
142
+
143
+
144
+ <div id="rdoc-debugging-section-dump" class="debugging-section">
145
+
146
+ <p>Disabled; run with --debug to generate this.</p>
147
+
148
+ </div>
149
+
150
+ <div id="validator-badges">
151
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
152
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
153
+ Rdoc Generator</a> 1.1.6</small>.</p>
154
+ </div>
155
+
156
+ </body>
157
+ </html>
158
+
@@ -0,0 +1,292 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
7
+
8
+ <title>Module: GridSearch</title>
9
+
10
+ <link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="./js/jquery.js" type="text/javascript"
13
+ charset="utf-8"></script>
14
+ <script src="./js/thickbox-compressed.js" type="text/javascript"
15
+ charset="utf-8"></script>
16
+ <script src="./js/quicksearch.js" type="text/javascript"
17
+ charset="utf-8"></script>
18
+ <script src="./js/darkfish.js" type="text/javascript"
19
+ charset="utf-8"></script>
20
+
21
+ </head>
22
+ <body class="module">
23
+
24
+ <div id="metadata">
25
+ <div id="home-metadata">
26
+ <div id="home-section" class="section">
27
+ <h3 class="section-header">
28
+ <a href="./index.html">Home</a>
29
+ <a href="./index.html#classes">Classes</a>
30
+ <a href="./index.html#methods">Methods</a>
31
+ </h3>
32
+ </div>
33
+ </div>
34
+
35
+ <div id="file-metadata">
36
+ <div id="file-list-section" class="section">
37
+ <h3 class="section-header">In Files</h3>
38
+ <div class="section-body">
39
+ <ul>
40
+
41
+ <li><a href="./lib/grid_search_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
42
+ class="thickbox" title="lib/grid_search.rb">lib/grid_search.rb</a></li>
43
+
44
+ </ul>
45
+ </div>
46
+ </div>
47
+
48
+
49
+ </div>
50
+
51
+ <div id="class-metadata">
52
+
53
+ <!-- Parent Class -->
54
+
55
+
56
+ <!-- Namespace Contents -->
57
+
58
+
59
+ <!-- Method Quickref -->
60
+
61
+ <div id="method-list-section" class="section">
62
+ <h3 class="section-header">Methods</h3>
63
+ <ul class="link-list">
64
+
65
+ <li><a href="#method-i-argbest">#argbest</a></li>
66
+
67
+ <li><a href="#method-i-argmax">#argmax</a></li>
68
+
69
+ <li><a href="#method-i-argmin">#argmin</a></li>
70
+
71
+ </ul>
72
+ </div>
73
+
74
+
75
+ <!-- Included Modules -->
76
+
77
+ </div>
78
+
79
+ <div id="project-metadata">
80
+
81
+
82
+ <div id="fileindex-section" class="section project-section">
83
+ <h3 class="section-header">Files</h3>
84
+ <ul>
85
+
86
+ <li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
87
+
88
+ </ul>
89
+ </div>
90
+
91
+
92
+ <div id="classindex-section" class="section project-section">
93
+ <h3 class="section-header">Class Index
94
+ <span class="search-toggle"><img src="./images/find.png"
95
+ height="16" width="16" alt="[+]"
96
+ title="show/hide quicksearch" /></span></h3>
97
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
98
+ <fieldset>
99
+ <legend>Quicksearch</legend>
100
+ <input type="text" name="quicksearch" value=""
101
+ class="quicksearch-field" />
102
+ </fieldset>
103
+ </form>
104
+
105
+ <ul class="link-list">
106
+
107
+ <li><a href="./Array.html">Array</a></li>
108
+
109
+ <li><a href="./Cartesian.html">Cartesian</a></li>
110
+
111
+ <li><a href="./CartesianIterator.html">CartesianIterator</a></li>
112
+
113
+ <li><a href="./Enumerable.html">Enumerable</a></li>
114
+
115
+ <li><a href="./GridSearch.html">GridSearch</a></li>
116
+
117
+ <li><a href="./Iterable.html">Iterable</a></li>
118
+
119
+ </ul>
120
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
121
+ </div>
122
+
123
+
124
+ </div>
125
+ </div>
126
+
127
+ <div id="documentation">
128
+ <h1 class="module">GridSearch</h1>
129
+
130
+ <div id="description">
131
+
132
+ </div>
133
+
134
+ <!-- Constants -->
135
+
136
+
137
+ <!-- Attributes -->
138
+
139
+
140
+ <!-- Methods -->
141
+
142
+ <div id="public-instance-method-details" class="method-section section">
143
+ <h3 class="section-header">Public Instance Methods</h3>
144
+
145
+
146
+ <div id="argmax-method" class="method-detail ">
147
+ <a name="method-i-argmax"></a>
148
+
149
+ <div class="method-heading">
150
+
151
+ <span class="method-name">argmax</span><span
152
+ class="method-args">(&block)</span>
153
+ <span class="method-click-advice">click to toggle source</span>
154
+
155
+ </div>
156
+
157
+ <div class="method-description">
158
+
159
+ <p>
160
+ Finds the argument which maximizes the function given in the block trhu
161
+ grid-search maximization.
162
+ </p>
163
+ <pre>
164
+ [-1,0,1,2].argmax {|x| x**2 } #=&gt; 2</pre>
165
+
166
+
167
+
168
+ <div class="method-source-code"
169
+ id="argmax-source">
170
+ <pre>
171
+ <span class="ruby-comment cmt"># File lib/grid_search.rb, line 6</span>
172
+ 6: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">argmax</span>(&amp;<span class="ruby-identifier">block</span>)
173
+ 7: <span class="ruby-identifier">argbest</span>(<span class="ruby-value">:&gt;</span>, &amp;<span class="ruby-identifier">block</span>)
174
+ 8: <span class="ruby-keyword kw">end</span></pre>
175
+ </div>
176
+
177
+ </div>
178
+
179
+
180
+
181
+
182
+ </div>
183
+
184
+
185
+ <div id="argmin-method" class="method-detail ">
186
+ <a name="method-i-argmin"></a>
187
+
188
+ <div class="method-heading">
189
+
190
+ <span class="method-name">argmin</span><span
191
+ class="method-args">(&block)</span>
192
+ <span class="method-click-advice">click to toggle source</span>
193
+
194
+ </div>
195
+
196
+ <div class="method-description">
197
+
198
+ <p>
199
+ Finds the argument which minimizes the function given in the block trhu
200
+ grid-search minimization.
201
+ </p>
202
+ <pre>
203
+ [-1,0,1,2].argmin {|x| x**2 } #=&gt; 0</pre>
204
+
205
+
206
+
207
+ <div class="method-source-code"
208
+ id="argmin-source">
209
+ <pre>
210
+ <span class="ruby-comment cmt"># File lib/grid_search.rb, line 13</span>
211
+ 13: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">argmin</span>(&amp;<span class="ruby-identifier">block</span>)
212
+ 14: <span class="ruby-identifier">argbest</span>(<span class="ruby-value">:&lt;</span>, &amp;<span class="ruby-identifier">block</span>)
213
+ 15: <span class="ruby-keyword kw">end</span></pre>
214
+ </div>
215
+
216
+ </div>
217
+
218
+
219
+
220
+
221
+ </div>
222
+
223
+
224
+ </div>
225
+
226
+ <div id="private-instance-method-details" class="method-section section">
227
+ <h3 class="section-header">Private Instance Methods</h3>
228
+
229
+
230
+ <div id="argbest-method" class="method-detail ">
231
+ <a name="method-i-argbest"></a>
232
+
233
+ <div class="method-heading">
234
+
235
+ <span class="method-name">argbest</span><span
236
+ class="method-args">(cmp)</span>
237
+ <span class="method-click-advice">click to toggle source</span>
238
+
239
+ </div>
240
+
241
+ <div class="method-description">
242
+
243
+
244
+
245
+
246
+
247
+ <div class="method-source-code"
248
+ id="argbest-source">
249
+ <pre>
250
+ <span class="ruby-comment cmt"># File lib/grid_search.rb, line 19</span>
251
+ 19: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">argbest</span>(<span class="ruby-identifier">cmp</span>)
252
+ 20: <span class="ruby-identifier">best_arg</span>, <span class="ruby-identifier">best_val</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>
253
+ 21: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span>*<span class="ruby-identifier">curr_arg</span><span class="ruby-operator">|</span>
254
+ 22: <span class="ruby-identifier">curr_val</span> = <span class="ruby-keyword kw">yield</span>(*<span class="ruby-identifier">curr_arg</span>)
255
+ 23: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">best_val</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">curr_val</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">cmp</span>, <span class="ruby-identifier">best_val</span>)
256
+ 24: <span class="ruby-identifier">best_val</span> = <span class="ruby-identifier">curr_val</span>
257
+ 25: <span class="ruby-identifier">best_arg</span> = <span class="ruby-identifier">curr_arg</span>
258
+ 26: <span class="ruby-keyword kw">end</span>
259
+ 27: <span class="ruby-keyword kw">end</span>
260
+ 28: <span class="ruby-identifier">best_arg</span>
261
+ 29: <span class="ruby-keyword kw">end</span></pre>
262
+ </div>
263
+
264
+ </div>
265
+
266
+
267
+
268
+
269
+ </div>
270
+
271
+
272
+ </div>
273
+
274
+
275
+ </div>
276
+
277
+
278
+ <div id="rdoc-debugging-section-dump" class="debugging-section">
279
+
280
+ <p>Disabled; run with --debug to generate this.</p>
281
+
282
+ </div>
283
+
284
+ <div id="validator-badges">
285
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
286
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
287
+ Rdoc Generator</a> 1.1.6</small>.</p>
288
+ </div>
289
+
290
+ </body>
291
+ </html>
292
+
@@ -0,0 +1,306 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
7
+
8
+ <title>Module: Iterable</title>
9
+
10
+ <link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="./js/jquery.js" type="text/javascript"
13
+ charset="utf-8"></script>
14
+ <script src="./js/thickbox-compressed.js" type="text/javascript"
15
+ charset="utf-8"></script>
16
+ <script src="./js/quicksearch.js" type="text/javascript"
17
+ charset="utf-8"></script>
18
+ <script src="./js/darkfish.js" type="text/javascript"
19
+ charset="utf-8"></script>
20
+
21
+ </head>
22
+ <body class="module">
23
+
24
+ <div id="metadata">
25
+ <div id="home-metadata">
26
+ <div id="home-section" class="section">
27
+ <h3 class="section-header">
28
+ <a href="./index.html">Home</a>
29
+ <a href="./index.html#classes">Classes</a>
30
+ <a href="./index.html#methods">Methods</a>
31
+ </h3>
32
+ </div>
33
+ </div>
34
+
35
+ <div id="file-metadata">
36
+ <div id="file-list-section" class="section">
37
+ <h3 class="section-header">In Files</h3>
38
+ <div class="section-body">
39
+ <ul>
40
+
41
+ <li><a href="./lib/cartesian_iterator_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
42
+ class="thickbox" title="lib/cartesian_iterator.rb">lib/cartesian_iterator.rb</a></li>
43
+
44
+ </ul>
45
+ </div>
46
+ </div>
47
+
48
+
49
+ </div>
50
+
51
+ <div id="class-metadata">
52
+
53
+ <!-- Parent Class -->
54
+
55
+
56
+ <!-- Namespace Contents -->
57
+
58
+
59
+ <!-- Method Quickref -->
60
+
61
+ <div id="method-list-section" class="section">
62
+ <h3 class="section-header">Methods</h3>
63
+ <ul class="link-list">
64
+
65
+ <li><a href="#method-i-next">#next</a></li>
66
+
67
+ <li><a href="#method-i-raw_next">#raw_next</a></li>
68
+
69
+ <li><a href="#method-i-restart">#restart</a></li>
70
+
71
+ <li><a href="#method-i-restart_and_raw_next">#restart_and_raw_next</a></li>
72
+
73
+ </ul>
74
+ </div>
75
+
76
+
77
+ <!-- Included Modules -->
78
+
79
+ </div>
80
+
81
+ <div id="project-metadata">
82
+
83
+
84
+ <div id="fileindex-section" class="section project-section">
85
+ <h3 class="section-header">Files</h3>
86
+ <ul>
87
+
88
+ <li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
89
+
90
+ </ul>
91
+ </div>
92
+
93
+
94
+ <div id="classindex-section" class="section project-section">
95
+ <h3 class="section-header">Class Index
96
+ <span class="search-toggle"><img src="./images/find.png"
97
+ height="16" width="16" alt="[+]"
98
+ title="show/hide quicksearch" /></span></h3>
99
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
100
+ <fieldset>
101
+ <legend>Quicksearch</legend>
102
+ <input type="text" name="quicksearch" value=""
103
+ class="quicksearch-field" />
104
+ </fieldset>
105
+ </form>
106
+
107
+ <ul class="link-list">
108
+
109
+ <li><a href="./Array.html">Array</a></li>
110
+
111
+ <li><a href="./Cartesian.html">Cartesian</a></li>
112
+
113
+ <li><a href="./CartesianIterator.html">CartesianIterator</a></li>
114
+
115
+ <li><a href="./Enumerable.html">Enumerable</a></li>
116
+
117
+ <li><a href="./GridSearch.html">GridSearch</a></li>
118
+
119
+ <li><a href="./Iterable.html">Iterable</a></li>
120
+
121
+ </ul>
122
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
123
+ </div>
124
+
125
+
126
+ </div>
127
+ </div>
128
+
129
+ <div id="documentation">
130
+ <h1 class="module">Iterable</h1>
131
+
132
+ <div id="description">
133
+
134
+ </div>
135
+
136
+ <!-- Constants -->
137
+
138
+
139
+ <!-- Attributes -->
140
+
141
+
142
+ <!-- Methods -->
143
+
144
+ <div id="public-instance-method-details" class="method-section section">
145
+ <h3 class="section-header">Public Instance Methods</h3>
146
+
147
+
148
+ <div id="next-method" class="method-detail ">
149
+ <a name="method-i-next"></a>
150
+
151
+ <div class="method-heading">
152
+
153
+ <span class="method-name">next</span><span
154
+ class="method-args">()</span>
155
+ <span class="method-click-advice">click to toggle source</span>
156
+
157
+ </div>
158
+
159
+ <div class="method-description">
160
+
161
+
162
+
163
+
164
+
165
+ <div class="method-source-code"
166
+ id="next-source">
167
+ <pre>
168
+ <span class="ruby-comment cmt"># File lib/cartesian_iterator.rb, line 83</span>
169
+ 83: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">next</span>
170
+ 84: <span class="ruby-identifier">restart</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-keyword kw">defined?</span> <span class="ruby-ivar">@next_index</span>
171
+ 85: <span class="ruby-identifier">raw_next</span>
172
+ 86: <span class="ruby-keyword kw">end</span></pre>
173
+ </div>
174
+
175
+ </div>
176
+
177
+
178
+
179
+
180
+ </div>
181
+
182
+
183
+ <div id="raw-next-method" class="method-detail ">
184
+ <a name="method-i-raw_next"></a>
185
+
186
+ <div class="method-heading">
187
+
188
+ <span class="method-name">raw_next</span><span
189
+ class="method-args">()</span>
190
+ <span class="method-click-advice">click to toggle source</span>
191
+
192
+ </div>
193
+
194
+ <div class="method-description">
195
+
196
+
197
+
198
+
199
+
200
+ <div class="method-source-code"
201
+ id="raw-next-source">
202
+ <pre>
203
+ <span class="ruby-comment cmt"># File lib/cartesian_iterator.rb, line 88</span>
204
+ 88: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">raw_next</span>
205
+ 89: <span class="ruby-keyword kw">self</span>[<span class="ruby-ivar">@next_index</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>]
206
+ 90: <span class="ruby-keyword kw">end</span></pre>
207
+ </div>
208
+
209
+ </div>
210
+
211
+
212
+
213
+
214
+ </div>
215
+
216
+
217
+ <div id="restart-method" class="method-detail ">
218
+ <a name="method-i-restart"></a>
219
+
220
+ <div class="method-heading">
221
+
222
+ <span class="method-name">restart</span><span
223
+ class="method-args">()</span>
224
+ <span class="method-click-advice">click to toggle source</span>
225
+
226
+ </div>
227
+
228
+ <div class="method-description">
229
+
230
+
231
+
232
+
233
+
234
+ <div class="method-source-code"
235
+ id="restart-source">
236
+ <pre>
237
+ <span class="ruby-comment cmt"># File lib/cartesian_iterator.rb, line 78</span>
238
+ 78: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">restart</span>
239
+ 79: <span class="ruby-ivar">@next_index</span> = <span class="ruby-value">1</span>
240
+ 80: <span class="ruby-keyword kw">true</span>
241
+ 81: <span class="ruby-keyword kw">end</span></pre>
242
+ </div>
243
+
244
+ </div>
245
+
246
+
247
+
248
+
249
+ </div>
250
+
251
+
252
+ <div id="restart-and-raw-next-method" class="method-detail ">
253
+ <a name="method-i-restart_and_raw_next"></a>
254
+
255
+ <div class="method-heading">
256
+
257
+ <span class="method-name">restart_and_raw_next</span><span
258
+ class="method-args">()</span>
259
+ <span class="method-click-advice">click to toggle source</span>
260
+
261
+ </div>
262
+
263
+ <div class="method-description">
264
+
265
+
266
+
267
+
268
+
269
+ <div class="method-source-code"
270
+ id="restart-and-raw-next-source">
271
+ <pre>
272
+ <span class="ruby-comment cmt"># File lib/cartesian_iterator.rb, line 92</span>
273
+ 92: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">restart_and_raw_next</span>
274
+ 93: <span class="ruby-keyword kw">self</span>[<span class="ruby-ivar">@next_index</span> = <span class="ruby-value">0</span>]
275
+ 94: <span class="ruby-keyword kw">end</span></pre>
276
+ </div>
277
+
278
+ </div>
279
+
280
+
281
+
282
+
283
+ </div>
284
+
285
+
286
+ </div>
287
+
288
+
289
+ </div>
290
+
291
+
292
+ <div id="rdoc-debugging-section-dump" class="debugging-section">
293
+
294
+ <p>Disabled; run with --debug to generate this.</p>
295
+
296
+ </div>
297
+
298
+ <div id="validator-badges">
299
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
300
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
301
+ Rdoc Generator</a> 1.1.6</small>.</p>
302
+ </div>
303
+
304
+ </body>
305
+ </html>
306
+