wahlrecht_de 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +16 -0
- data/Gemfile.lock +70 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +19 -0
- data/Rakefile +54 -0
- data/VERSION +1 -0
- data/bin/wahlrecht_de +5 -0
- data/doc/LICENSE_txt.html +109 -0
- data/doc/WahlrechtDe/Dataline.html +378 -0
- data/doc/WahlrechtDe/Runner.html +226 -0
- data/doc/WahlrechtDe/Survey.html +325 -0
- data/doc/WahlrechtDe.html +131 -0
- data/doc/created.rid +6 -0
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +86 -0
- data/doc/js/darkfish.js +155 -0
- data/doc/js/jquery.js +18 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/search.js +94 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/searcher.js +228 -0
- data/doc/rdoc.css +595 -0
- data/doc/table_of_contents.html +86 -0
- data/lib/dataline.rb +43 -0
- data/lib/runner.rb +16 -0
- data/lib/survey.rb +38 -0
- data/spec/dataline_spec.rb +7 -0
- data/spec/spec_helper.rb +12 -0
- data/spec/survey_spec.rb +7 -0
- data/wahlrecht_de.gemspec +113 -0
- metadata +208 -0
@@ -0,0 +1,378 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>class WahlrechtDe::Dataline - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "../";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="class">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="../index.html">Home</a>
|
28
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
<div id="file-metadata">
|
49
|
+
<nav id="file-list-section" class="section">
|
50
|
+
<h3 class="section-header">Defined In</h3>
|
51
|
+
<ul>
|
52
|
+
<li>lib/wahlrecht_de/dataline.rb
|
53
|
+
</ul>
|
54
|
+
</nav>
|
55
|
+
|
56
|
+
|
57
|
+
</div>
|
58
|
+
|
59
|
+
<div id="class-metadata">
|
60
|
+
|
61
|
+
<nav id="parent-class-section" class="section">
|
62
|
+
<h3 class="section-header">Parent</h3>
|
63
|
+
|
64
|
+
<p class="link">Object
|
65
|
+
|
66
|
+
</nav>
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
<!-- Method Quickref -->
|
71
|
+
<nav id="method-list-section" class="section">
|
72
|
+
<h3 class="section-header">Methods</h3>
|
73
|
+
|
74
|
+
<ul class="link-list">
|
75
|
+
|
76
|
+
<li ><a href="#method-c-new">::new</a>
|
77
|
+
|
78
|
+
<li ><a href="#method-i-cut_extremes">#cut_extremes</a>
|
79
|
+
|
80
|
+
<li ><a href="#method-i-format_datapoint">#format_datapoint</a>
|
81
|
+
|
82
|
+
<li ><a href="#method-i-format_prognosis">#format_prognosis</a>
|
83
|
+
|
84
|
+
<li ><a href="#method-i-prognosis_range">#prognosis_range</a>
|
85
|
+
|
86
|
+
<li ><a href="#method-i-to_s">#to_s</a>
|
87
|
+
|
88
|
+
</ul>
|
89
|
+
</nav>
|
90
|
+
|
91
|
+
</div>
|
92
|
+
|
93
|
+
<div id="project-metadata">
|
94
|
+
<nav id="fileindex-section" class="section project-section">
|
95
|
+
<h3 class="section-header">Pages</h3>
|
96
|
+
|
97
|
+
<ul>
|
98
|
+
|
99
|
+
<li class="file"><a href="../LICENSE_txt.html">LICENSE</a>
|
100
|
+
|
101
|
+
</ul>
|
102
|
+
</nav>
|
103
|
+
|
104
|
+
<nav id="classindex-section" class="section project-section">
|
105
|
+
<h3 class="section-header">Class and Module Index</h3>
|
106
|
+
|
107
|
+
<ul class="link-list">
|
108
|
+
|
109
|
+
<li><a href="../WahlrechtDe.html">WahlrechtDe</a>
|
110
|
+
|
111
|
+
<li><a href="../WahlrechtDe/Dataline.html">WahlrechtDe::Dataline</a>
|
112
|
+
|
113
|
+
<li><a href="../WahlrechtDe/Runner.html">WahlrechtDe::Runner</a>
|
114
|
+
|
115
|
+
<li><a href="../WahlrechtDe/Survey.html">WahlrechtDe::Survey</a>
|
116
|
+
|
117
|
+
</ul>
|
118
|
+
</nav>
|
119
|
+
|
120
|
+
</div>
|
121
|
+
</nav>
|
122
|
+
|
123
|
+
<div id="documentation">
|
124
|
+
<h1 class="class">class WahlrechtDe::Dataline</h1>
|
125
|
+
|
126
|
+
<div id="description" class="description">
|
127
|
+
|
128
|
+
</div><!-- description -->
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
<!-- Methods -->
|
143
|
+
|
144
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
145
|
+
<h3 class="section-header">Public Class Methods</h3>
|
146
|
+
|
147
|
+
|
148
|
+
<div id="method-c-new" class="method-detail ">
|
149
|
+
|
150
|
+
<div class="method-heading">
|
151
|
+
<span class="method-name">new</span><span
|
152
|
+
class="method-args">(name, prognosis)</span>
|
153
|
+
|
154
|
+
<span class="method-click-advice">click to toggle source</span>
|
155
|
+
|
156
|
+
</div>
|
157
|
+
|
158
|
+
|
159
|
+
<div class="method-description">
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
<div class="method-source-code" id="new-source">
|
167
|
+
<pre><span class="ruby-comment"># File lib/wahlrecht_de/dataline.rb, line 4</span>
|
168
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">name</span>, <span class="ruby-identifier">prognosis</span>
|
169
|
+
<span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span>
|
170
|
+
<span class="ruby-ivar">@prognosis</span> = <span class="ruby-identifier">format_prognosis</span> <span class="ruby-identifier">prognosis</span>
|
171
|
+
<span class="ruby-keyword">end</span></pre>
|
172
|
+
</div><!-- new-source -->
|
173
|
+
|
174
|
+
</div>
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
</div><!-- new-method -->
|
180
|
+
|
181
|
+
|
182
|
+
</section><!-- public-class-method-details -->
|
183
|
+
|
184
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
185
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
186
|
+
|
187
|
+
|
188
|
+
<div id="method-i-cut_extremes" class="method-detail ">
|
189
|
+
|
190
|
+
<div class="method-heading">
|
191
|
+
<span class="method-name">cut_extremes</span><span
|
192
|
+
class="method-args">()</span>
|
193
|
+
|
194
|
+
<span class="method-click-advice">click to toggle source</span>
|
195
|
+
|
196
|
+
</div>
|
197
|
+
|
198
|
+
|
199
|
+
<div class="method-description">
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
<div class="method-source-code" id="cut_extremes-source">
|
207
|
+
<pre><span class="ruby-comment"># File lib/wahlrecht_de/dataline.rb, line 26</span>
|
208
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">cut_extremes</span>
|
209
|
+
<span class="ruby-identifier">sorted_prognosis</span> = <span class="ruby-ivar">@prognosis</span>.<span class="ruby-identifier">sort</span>
|
210
|
+
<span class="ruby-identifier">sorted_prognosis</span>.<span class="ruby-identifier">pop</span>
|
211
|
+
<span class="ruby-identifier">sorted_prognosis</span>.<span class="ruby-identifier">shift</span>
|
212
|
+
<span class="ruby-identifier">sorted_prognosis</span>
|
213
|
+
<span class="ruby-keyword">end</span></pre>
|
214
|
+
</div><!-- cut_extremes-source -->
|
215
|
+
|
216
|
+
</div>
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
</div><!-- cut_extremes-method -->
|
222
|
+
|
223
|
+
|
224
|
+
<div id="method-i-format_datapoint" class="method-detail ">
|
225
|
+
|
226
|
+
<div class="method-heading">
|
227
|
+
<span class="method-name">format_datapoint</span><span
|
228
|
+
class="method-args">(datapoint)</span>
|
229
|
+
|
230
|
+
<span class="method-click-advice">click to toggle source</span>
|
231
|
+
|
232
|
+
</div>
|
233
|
+
|
234
|
+
|
235
|
+
<div class="method-description">
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
<div class="method-source-code" id="format_datapoint-source">
|
243
|
+
<pre><span class="ruby-comment"># File lib/wahlrecht_de/dataline.rb, line 15</span>
|
244
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">format_datapoint</span> <span class="ruby-identifier">datapoint</span>
|
245
|
+
<span class="ruby-identifier">datapoint</span>.<span class="ruby-identifier">sub!</span> <span class="ruby-string">","</span>, <span class="ruby-string">"."</span>
|
246
|
+
<span class="ruby-identifier">datapoint</span>.<span class="ruby-identifier">chomp!</span> <span class="ruby-string">" %"</span>
|
247
|
+
<span class="ruby-identifier">datapoint</span>.<span class="ruby-identifier">chomp!</span> <span class="ruby-string">".0"</span>
|
248
|
+
<span class="ruby-keyword">end</span></pre>
|
249
|
+
</div><!-- format_datapoint-source -->
|
250
|
+
|
251
|
+
</div>
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
</div><!-- format_datapoint-method -->
|
257
|
+
|
258
|
+
|
259
|
+
<div id="method-i-format_prognosis" class="method-detail ">
|
260
|
+
|
261
|
+
<div class="method-heading">
|
262
|
+
<span class="method-name">format_prognosis</span><span
|
263
|
+
class="method-args">(prognosis)</span>
|
264
|
+
|
265
|
+
<span class="method-click-advice">click to toggle source</span>
|
266
|
+
|
267
|
+
</div>
|
268
|
+
|
269
|
+
|
270
|
+
<div class="method-description">
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
<div class="method-source-code" id="format_prognosis-source">
|
278
|
+
<pre><span class="ruby-comment"># File lib/wahlrecht_de/dataline.rb, line 9</span>
|
279
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">format_prognosis</span> <span class="ruby-identifier">prognosis</span>
|
280
|
+
<span class="ruby-identifier">prognosis</span>.<span class="ruby-identifier">pop</span>
|
281
|
+
<span class="ruby-identifier">prognosis</span> = <span class="ruby-identifier">prognosis</span> <span class="ruby-operator">-</span> [<span class="ruby-string">""</span>, <span class="ruby-node">"&#8211;"</span>]
|
282
|
+
<span class="ruby-identifier">prognosis</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">datapoint</span><span class="ruby-operator">|</span> <span class="ruby-identifier">format_datapoint</span> <span class="ruby-identifier">datapoint</span> <span class="ruby-keyword">end</span>
|
283
|
+
<span class="ruby-keyword">end</span></pre>
|
284
|
+
</div><!-- format_prognosis-source -->
|
285
|
+
|
286
|
+
</div>
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
</div><!-- format_prognosis-method -->
|
292
|
+
|
293
|
+
|
294
|
+
<div id="method-i-prognosis_range" class="method-detail ">
|
295
|
+
|
296
|
+
<div class="method-heading">
|
297
|
+
<span class="method-name">prognosis_range</span><span
|
298
|
+
class="method-args">()</span>
|
299
|
+
|
300
|
+
<span class="method-click-advice">click to toggle source</span>
|
301
|
+
|
302
|
+
</div>
|
303
|
+
|
304
|
+
|
305
|
+
<div class="method-description">
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
|
312
|
+
<div class="method-source-code" id="prognosis_range-source">
|
313
|
+
<pre><span class="ruby-comment"># File lib/wahlrecht_de/dataline.rb, line 21</span>
|
314
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">prognosis_range</span>
|
315
|
+
<span class="ruby-identifier">cut_and_sorted_prognosis</span> = <span class="ruby-identifier">cut_extremes</span>
|
316
|
+
[<span class="ruby-identifier">cut_and_sorted_prognosis</span>[<span class="ruby-value">0</span>], <span class="ruby-identifier">cut_and_sorted_prognosis</span>.<span class="ruby-identifier">last</span>]
|
317
|
+
<span class="ruby-keyword">end</span></pre>
|
318
|
+
</div><!-- prognosis_range-source -->
|
319
|
+
|
320
|
+
</div>
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
</div><!-- prognosis_range-method -->
|
326
|
+
|
327
|
+
|
328
|
+
<div id="method-i-to_s" class="method-detail ">
|
329
|
+
|
330
|
+
<div class="method-heading">
|
331
|
+
<span class="method-name">to_s</span><span
|
332
|
+
class="method-args">()</span>
|
333
|
+
|
334
|
+
<span class="method-click-advice">click to toggle source</span>
|
335
|
+
|
336
|
+
</div>
|
337
|
+
|
338
|
+
|
339
|
+
<div class="method-description">
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
|
346
|
+
<div class="method-source-code" id="to_s-source">
|
347
|
+
<pre><span class="ruby-comment"># File lib/wahlrecht_de/dataline.rb, line 33</span>
|
348
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
|
349
|
+
<span class="ruby-identifier">range</span> = <span class="ruby-identifier">prognosis_range</span>
|
350
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">range</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">==</span> <span class="ruby-identifier">range</span>[<span class="ruby-value">1</span>]
|
351
|
+
<span class="ruby-node">"#{@name}: #{range[0]}%"</span>
|
352
|
+
<span class="ruby-keyword">else</span>
|
353
|
+
<span class="ruby-node">"#{@name}: #{range[0]}% bis #{range[1]}%"</span>
|
354
|
+
<span class="ruby-keyword">end</span>
|
355
|
+
<span class="ruby-keyword">end</span></pre>
|
356
|
+
</div><!-- to_s-source -->
|
357
|
+
|
358
|
+
</div>
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
</div><!-- to_s-method -->
|
364
|
+
|
365
|
+
|
366
|
+
</section><!-- public-instance-method-details -->
|
367
|
+
|
368
|
+
</section><!-- 5Buntitled-5D -->
|
369
|
+
|
370
|
+
</div><!-- documentation -->
|
371
|
+
|
372
|
+
|
373
|
+
<footer id="validator-badges">
|
374
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
375
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.1.
|
376
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
377
|
+
</footer>
|
378
|
+
|
@@ -0,0 +1,226 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>class WahlrechtDe::Runner - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "../";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="class">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="../index.html">Home</a>
|
28
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
<div id="file-metadata">
|
49
|
+
<nav id="file-list-section" class="section">
|
50
|
+
<h3 class="section-header">Defined In</h3>
|
51
|
+
<ul>
|
52
|
+
<li>lib/wahlrecht_de/runner.rb
|
53
|
+
</ul>
|
54
|
+
</nav>
|
55
|
+
|
56
|
+
|
57
|
+
</div>
|
58
|
+
|
59
|
+
<div id="class-metadata">
|
60
|
+
|
61
|
+
<nav id="parent-class-section" class="section">
|
62
|
+
<h3 class="section-header">Parent</h3>
|
63
|
+
|
64
|
+
<p class="link">Object
|
65
|
+
|
66
|
+
</nav>
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
<!-- Method Quickref -->
|
71
|
+
<nav id="method-list-section" class="section">
|
72
|
+
<h3 class="section-header">Methods</h3>
|
73
|
+
|
74
|
+
<ul class="link-list">
|
75
|
+
|
76
|
+
<li ><a href="#method-c-new">::new</a>
|
77
|
+
|
78
|
+
<li ><a href="#method-i-run">#run</a>
|
79
|
+
|
80
|
+
</ul>
|
81
|
+
</nav>
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
<div id="project-metadata">
|
86
|
+
<nav id="fileindex-section" class="section project-section">
|
87
|
+
<h3 class="section-header">Pages</h3>
|
88
|
+
|
89
|
+
<ul>
|
90
|
+
|
91
|
+
<li class="file"><a href="../LICENSE_txt.html">LICENSE</a>
|
92
|
+
|
93
|
+
</ul>
|
94
|
+
</nav>
|
95
|
+
|
96
|
+
<nav id="classindex-section" class="section project-section">
|
97
|
+
<h3 class="section-header">Class and Module Index</h3>
|
98
|
+
|
99
|
+
<ul class="link-list">
|
100
|
+
|
101
|
+
<li><a href="../WahlrechtDe.html">WahlrechtDe</a>
|
102
|
+
|
103
|
+
<li><a href="../WahlrechtDe/Dataline.html">WahlrechtDe::Dataline</a>
|
104
|
+
|
105
|
+
<li><a href="../WahlrechtDe/Runner.html">WahlrechtDe::Runner</a>
|
106
|
+
|
107
|
+
<li><a href="../WahlrechtDe/Survey.html">WahlrechtDe::Survey</a>
|
108
|
+
|
109
|
+
</ul>
|
110
|
+
</nav>
|
111
|
+
|
112
|
+
</div>
|
113
|
+
</nav>
|
114
|
+
|
115
|
+
<div id="documentation">
|
116
|
+
<h1 class="class">class WahlrechtDe::Runner</h1>
|
117
|
+
|
118
|
+
<div id="description" class="description">
|
119
|
+
|
120
|
+
</div><!-- description -->
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
<!-- Methods -->
|
135
|
+
|
136
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
137
|
+
<h3 class="section-header">Public Class Methods</h3>
|
138
|
+
|
139
|
+
|
140
|
+
<div id="method-c-new" class="method-detail ">
|
141
|
+
|
142
|
+
<div class="method-heading">
|
143
|
+
<span class="method-name">new</span><span
|
144
|
+
class="method-args">()</span>
|
145
|
+
|
146
|
+
<span class="method-click-advice">click to toggle source</span>
|
147
|
+
|
148
|
+
</div>
|
149
|
+
|
150
|
+
|
151
|
+
<div class="method-description">
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
<div class="method-source-code" id="new-source">
|
159
|
+
<pre><span class="ruby-comment"># File lib/wahlrecht_de/runner.rb, line 6</span>
|
160
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>
|
161
|
+
<span class="ruby-ivar">@line_range</span> = (<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">7</span>)
|
162
|
+
<span class="ruby-keyword">end</span></pre>
|
163
|
+
</div><!-- new-source -->
|
164
|
+
|
165
|
+
</div>
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
</div><!-- new-method -->
|
171
|
+
|
172
|
+
|
173
|
+
</section><!-- public-class-method-details -->
|
174
|
+
|
175
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
176
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
177
|
+
|
178
|
+
|
179
|
+
<div id="method-i-run" class="method-detail ">
|
180
|
+
|
181
|
+
<div class="method-heading">
|
182
|
+
<span class="method-name">run</span><span
|
183
|
+
class="method-args">()</span>
|
184
|
+
|
185
|
+
<span class="method-click-advice">click to toggle source</span>
|
186
|
+
|
187
|
+
</div>
|
188
|
+
|
189
|
+
|
190
|
+
<div class="method-description">
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
<div class="method-source-code" id="run-source">
|
198
|
+
<pre><span class="ruby-comment"># File lib/wahlrecht_de/runner.rb, line 10</span>
|
199
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">run</span>
|
200
|
+
<span class="ruby-identifier">survey</span> = <span class="ruby-constant">Survey</span>.<span class="ruby-identifier">new</span>
|
201
|
+
<span class="ruby-ivar">@line_range</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">row</span><span class="ruby-operator">|</span> <span class="ruby-identifier">survey</span>.<span class="ruby-identifier">parse</span> <span class="ruby-identifier">row</span> <span class="ruby-keyword">end</span>
|
202
|
+
<span class="ruby-identifier">survey</span>.<span class="ruby-identifier">to_s</span>
|
203
|
+
<span class="ruby-keyword">end</span></pre>
|
204
|
+
</div><!-- run-source -->
|
205
|
+
|
206
|
+
</div>
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
</div><!-- run-method -->
|
212
|
+
|
213
|
+
|
214
|
+
</section><!-- public-instance-method-details -->
|
215
|
+
|
216
|
+
</section><!-- 5Buntitled-5D -->
|
217
|
+
|
218
|
+
</div><!-- documentation -->
|
219
|
+
|
220
|
+
|
221
|
+
<footer id="validator-badges">
|
222
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
223
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.1.
|
224
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
225
|
+
</footer>
|
226
|
+
|