sycsvpro 0.0.9 → 0.1.0

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.
@@ -127,6 +127,19 @@ the value of column 1 with 2.</p>
127
127
  </header>
128
128
 
129
129
 
130
+ <div id="attribute-i-add_sum_row" class="method-detail">
131
+ <div class="method-heading attribute-method-heading">
132
+ <span class="method-name">add_sum_row</span><span
133
+ class="attribute-access-type">[R]</span>
134
+ </div>
135
+
136
+ <div class="method-description">
137
+
138
+ <p>if true add a sum row at the bottom of the out file</p>
139
+
140
+ </div>
141
+ </div>
142
+
130
143
  <div id="attribute-i-columns" class="method-detail">
131
144
  <div class="method-heading attribute-method-heading">
132
145
  <span class="method-name">columns</span><span
@@ -237,13 +250,15 @@ generated due to a arithmetic operation that creates new columns</p>
237
250
 
238
251
 
239
252
  <div class="method-source-code" id="new-source">
240
- <pre><span class="ruby-comment"># File lib/sycsvpro/calculator.rb, line 31</span>
253
+ <pre><span class="ruby-comment"># File lib/sycsvpro/calculator.rb, line 33</span>
241
254
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">options</span>={})
242
- <span class="ruby-ivar">@infile</span> = <span class="ruby-identifier">options</span>[<span class="ruby-value">:infile</span>]
243
- <span class="ruby-ivar">@outfile</span> = <span class="ruby-identifier">options</span>[<span class="ruby-value">:outfile</span>]
244
- <span class="ruby-ivar">@row_filter</span> = <span class="ruby-constant">RowFilter</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>[<span class="ruby-value">:rows</span>])
245
- <span class="ruby-ivar">@header</span> = <span class="ruby-constant">Header</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>[<span class="ruby-value">:header</span>])
246
- <span class="ruby-ivar">@formulae</span> = {}
255
+ <span class="ruby-ivar">@infile</span> = <span class="ruby-identifier">options</span>[<span class="ruby-value">:infile</span>]
256
+ <span class="ruby-ivar">@outfile</span> = <span class="ruby-identifier">options</span>[<span class="ruby-value">:outfile</span>]
257
+ <span class="ruby-ivar">@row_filter</span> = <span class="ruby-constant">RowFilter</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>[<span class="ruby-value">:rows</span>])
258
+ <span class="ruby-ivar">@header</span> = <span class="ruby-constant">Header</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>[<span class="ruby-value">:header</span>])
259
+ <span class="ruby-ivar">@sum_row</span> = []
260
+ <span class="ruby-ivar">@add_sum_row</span> = <span class="ruby-identifier">options</span>[<span class="ruby-value">:sum</span>] <span class="ruby-operator">||</span> <span class="ruby-keyword">false</span>
261
+ <span class="ruby-ivar">@formulae</span> = {}
247
262
  <span class="ruby-identifier">create_calculator</span>(<span class="ruby-identifier">options</span>[<span class="ruby-value">:cols</span>])
248
263
  <span class="ruby-keyword">end</span></pre>
249
264
  </div>
@@ -283,7 +298,7 @@ generated due to a arithmetic operation that creates new columns</p>
283
298
 
284
299
 
285
300
  <div class="method-source-code" id="execute-source">
286
- <pre><span class="ruby-comment"># File lib/sycsvpro/calculator.rb, line 46</span>
301
+ <pre><span class="ruby-comment"># File lib/sycsvpro/calculator.rb, line 50</span>
287
302
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">execute</span>
288
303
  <span class="ruby-identifier">processed_header</span> = <span class="ruby-keyword">false</span>
289
304
 
@@ -305,7 +320,19 @@ generated due to a arithmetic operation that creates new columns</p>
305
320
  <span class="ruby-ivar">@columns</span>[<span class="ruby-identifier">col</span>.<span class="ruby-identifier">to_i</span>] = <span class="ruby-identifier">eval</span>(<span class="ruby-identifier">formula</span>)
306
321
  <span class="ruby-keyword">end</span>
307
322
  <span class="ruby-identifier">out</span>.<span class="ruby-identifier">puts</span> <span class="ruby-ivar">@columns</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">&#39;;&#39;</span>)
323
+
324
+ <span class="ruby-ivar">@columns</span>.<span class="ruby-identifier">each_with_index</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">column</span>, <span class="ruby-identifier">index</span><span class="ruby-operator">|</span>
325
+ <span class="ruby-keyword">if</span> <span class="ruby-ivar">@sum_row</span>[<span class="ruby-identifier">index</span>]
326
+ <span class="ruby-ivar">@sum_row</span>[<span class="ruby-identifier">index</span>] <span class="ruby-operator">+=</span> <span class="ruby-identifier">to_number</span> <span class="ruby-identifier">column</span>
327
+ <span class="ruby-keyword">else</span>
328
+ <span class="ruby-ivar">@sum_row</span>[<span class="ruby-identifier">index</span>] = <span class="ruby-identifier">to_number</span> <span class="ruby-identifier">column</span>
329
+ <span class="ruby-keyword">end</span>
330
+ <span class="ruby-keyword">end</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">add_sum_row</span>
331
+
308
332
  <span class="ruby-keyword">end</span>
333
+
334
+ <span class="ruby-identifier">out</span>.<span class="ruby-identifier">puts</span> <span class="ruby-ivar">@sum_row</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">&#39;;&#39;</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">add_sum_row</span>
335
+
309
336
  <span class="ruby-keyword">end</span>
310
337
  <span class="ruby-keyword">end</span></pre>
311
338
  </div>
@@ -337,7 +364,7 @@ generated due to a arithmetic operation that creates new columns</p>
337
364
 
338
365
 
339
366
  <div class="method-source-code" id="method_missing-source">
340
- <pre><span class="ruby-comment"># File lib/sycsvpro/calculator.rb, line 41</span>
367
+ <pre><span class="ruby-comment"># File lib/sycsvpro/calculator.rb, line 45</span>
341
368
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">id</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
342
369
  <span class="ruby-identifier">to_number</span>(<span class="ruby-identifier">columns</span>[<span class="ruby-node">$1</span>.<span class="ruby-identifier">to_i</span>]) <span class="ruby-keyword">if</span> <span class="ruby-identifier">id</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/c(\d+)/</span>
343
370
  <span class="ruby-keyword">end</span></pre>
@@ -88,7 +88,7 @@
88
88
 
89
89
  <li ><a href="#method-i-execute">#execute</a>
90
90
 
91
- <li ><a href="#method-i-process_file">#process_file</a>
91
+ <li ><a href="#method-i-process_count">#process_count</a>
92
92
 
93
93
  <li ><a href="#method-i-write_result">#write_result</a>
94
94
 
@@ -105,8 +105,8 @@
105
105
 
106
106
  <section class="description">
107
107
 
108
- <p>Creates a new counter that counts values and uses the values as column
109
- names and uses the count as the column value</p>
108
+ <p><a href="Counter.html">Counter</a> counts values and uses the values as
109
+ column names and uses the count as the column value</p>
110
110
 
111
111
  </section>
112
112
 
@@ -166,15 +166,28 @@ names and uses the count as the column value</p>
166
166
  </div>
167
167
  </div>
168
168
 
169
- <div id="attribute-i-key_column" class="method-detail">
169
+ <div id="attribute-i-key_columns" class="method-detail">
170
170
  <div class="method-heading attribute-method-heading">
171
- <span class="method-name">key_column</span><span
171
+ <span class="method-name">key_columns</span><span
172
172
  class="attribute-access-type">[R]</span>
173
173
  </div>
174
174
 
175
175
  <div class="method-description">
176
176
 
177
- <p>values are assigned to the key column</p>
177
+ <p>values are assigned to the key columns</p>
178
+
179
+ </div>
180
+ </div>
181
+
182
+ <div id="attribute-i-key_titles" class="method-detail">
183
+ <div class="method-heading attribute-method-heading">
184
+ <span class="method-name">key_titles</span><span
185
+ class="attribute-access-type">[R]</span>
186
+ </div>
187
+
188
+ <div class="method-description">
189
+
190
+ <p>key columns headers</p>
178
191
 
179
192
  </div>
180
193
  </div>
@@ -218,6 +231,19 @@ names and uses the count as the column value</p>
218
231
  </div>
219
232
  </div>
220
233
 
234
+ <div id="attribute-i-sum_col_title" class="method-detail">
235
+ <div class="method-heading attribute-method-heading">
236
+ <span class="method-name">sum_col_title</span><span
237
+ class="attribute-access-type">[R]</span>
238
+ </div>
239
+
240
+ <div class="method-description">
241
+
242
+ <p>Title of the sum column</p>
243
+
244
+ </div>
245
+ </div>
246
+
221
247
  <div id="attribute-i-sum_row" class="method-detail">
222
248
  <div class="method-heading attribute-method-heading">
223
249
  <span class="method-name">sum_row</span><span
@@ -226,14 +252,14 @@ names and uses the count as the column value</p>
226
252
 
227
253
  <div class="method-description">
228
254
 
229
- <p>row where to add the sums of the columns of the sum columns</p>
255
+ <p>row where to add the sums of the columns</p>
230
256
 
231
257
  </div>
232
258
  </div>
233
259
 
234
- <div id="attribute-i-sum_title" class="method-detail">
260
+ <div id="attribute-i-sum_row_title" class="method-detail">
235
261
  <div class="method-heading attribute-method-heading">
236
- <span class="method-name">sum_title</span><span
262
+ <span class="method-name">sum_row_title</span><span
237
263
  class="attribute-access-type">[R]</span>
238
264
  </div>
239
265
 
@@ -287,17 +313,16 @@ cols, date-format and indicator whether to add a sum row</p>
287
313
 
288
314
 
289
315
  <div class="method-source-code" id="new-source">
290
- <pre><span class="ruby-comment"># File lib/sycsvpro/counter.rb, line 37</span>
316
+ <pre><span class="ruby-comment"># File lib/sycsvpro/counter.rb, line 41</span>
291
317
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">options</span>={})
292
318
  <span class="ruby-ivar">@infile</span> = <span class="ruby-identifier">options</span>[<span class="ruby-value">:infile</span>]
293
319
  <span class="ruby-ivar">@outfile</span> = <span class="ruby-identifier">options</span>[<span class="ruby-value">:outfile</span>]
294
- <span class="ruby-ivar">@key_column</span> = <span class="ruby-identifier">options</span>[<span class="ruby-value">:key</span>].<span class="ruby-identifier">to_i</span>
320
+ <span class="ruby-identifier">init_key_columns</span>(<span class="ruby-identifier">options</span>[<span class="ruby-value">:key</span>])
295
321
  <span class="ruby-ivar">@row_filter</span> = <span class="ruby-constant">RowFilter</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>[<span class="ruby-value">:rows</span>])
296
322
  <span class="ruby-ivar">@col_filter</span> = <span class="ruby-constant">ColumnFilter</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>[<span class="ruby-value">:cols</span>], <span class="ruby-identifier">df</span><span class="ruby-operator">:</span> <span class="ruby-identifier">options</span>[<span class="ruby-value">:df</span>])
297
323
  <span class="ruby-ivar">@key_values</span> = {}
298
324
  <span class="ruby-ivar">@heading</span> = []
299
- <span class="ruby-ivar">@sum_title</span>, <span class="ruby-ivar">@sum_row</span> = <span class="ruby-identifier">options</span>[<span class="ruby-value">:sum</span>].<span class="ruby-identifier">split</span>(<span class="ruby-string">&#39;:&#39;</span>) <span class="ruby-keyword">unless</span> <span class="ruby-identifier">options</span>[<span class="ruby-value">:sum</span>].<span class="ruby-identifier">nil?</span>
300
- <span class="ruby-ivar">@sum_row</span> = <span class="ruby-ivar">@sum_row</span>.<span class="ruby-identifier">to_i</span> <span class="ruby-keyword">unless</span> <span class="ruby-ivar">@sum_row</span>.<span class="ruby-identifier">nil?</span>
325
+ <span class="ruby-identifier">init_sum_scheme</span>(<span class="ruby-identifier">options</span>[<span class="ruby-value">:sum</span>])
301
326
  <span class="ruby-ivar">@sums</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">0</span>)
302
327
  <span class="ruby-keyword">end</span></pre>
303
328
  </div>
@@ -337,9 +362,9 @@ cols, date-format and indicator whether to add a sum row</p>
337
362
 
338
363
 
339
364
  <div class="method-source-code" id="execute-source">
340
- <pre><span class="ruby-comment"># File lib/sycsvpro/counter.rb, line 51</span>
365
+ <pre><span class="ruby-comment"># File lib/sycsvpro/counter.rb, line 54</span>
341
366
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">execute</span>
342
- <span class="ruby-identifier">process_file</span>
367
+ <span class="ruby-identifier">process_count</span>
343
368
  <span class="ruby-identifier">write_result</span>
344
369
  <span class="ruby-keyword">end</span></pre>
345
370
  </div>
@@ -352,10 +377,10 @@ cols, date-format and indicator whether to add a sum row</p>
352
377
  </div>
353
378
 
354
379
 
355
- <div id="method-i-process_file" class="method-detail ">
380
+ <div id="method-i-process_count" class="method-detail ">
356
381
 
357
382
  <div class="method-heading">
358
- <span class="method-name">process_file</span><span
383
+ <span class="method-name">process_count</span><span
359
384
  class="method-args">()</span>
360
385
 
361
386
  <span class="method-click-advice">click to toggle source</span>
@@ -370,21 +395,28 @@ cols, date-format and indicator whether to add a sum row</p>
370
395
 
371
396
 
372
397
 
373
- <div class="method-source-code" id="process_file-source">
374
- <pre><span class="ruby-comment"># File lib/sycsvpro/counter.rb, line 57</span>
375
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">process_file</span>
398
+ <div class="method-source-code" id="process_count-source">
399
+ <pre><span class="ruby-comment"># File lib/sycsvpro/counter.rb, line 60</span>
400
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">process_count</span>
376
401
  <span class="ruby-constant">File</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">infile</span>).<span class="ruby-identifier">each_with_index</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span>, <span class="ruby-identifier">index</span><span class="ruby-operator">|</span>
377
402
  <span class="ruby-identifier">result</span> = <span class="ruby-identifier">col_filter</span>.<span class="ruby-identifier">process</span>(<span class="ruby-identifier">row_filter</span>.<span class="ruby-identifier">process</span>(<span class="ruby-identifier">line</span>.<span class="ruby-identifier">chomp</span>, <span class="ruby-identifier">row</span><span class="ruby-operator">:</span> <span class="ruby-identifier">index</span>))
378
403
  <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword">or</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">empty?</span>
379
- <span class="ruby-identifier">key</span> = <span class="ruby-identifier">unstring</span>(<span class="ruby-identifier">line</span>).<span class="ruby-identifier">split</span>(<span class="ruby-string">&#39;;&#39;</span>)[<span class="ruby-identifier">key_column</span>]
380
- <span class="ruby-identifier">key_value</span> = <span class="ruby-identifier">key_values</span>[<span class="ruby-identifier">key</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">key_values</span>[<span class="ruby-identifier">key</span>] = { <span class="ruby-identifier">name</span><span class="ruby-operator">:</span> <span class="ruby-identifier">key</span>, <span class="ruby-identifier">elements</span><span class="ruby-operator">:</span> <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">0</span>) }
404
+ <span class="ruby-identifier">key</span> = <span class="ruby-identifier">unstring</span>(<span class="ruby-identifier">line</span>).<span class="ruby-identifier">split</span>(<span class="ruby-string">&#39;;&#39;</span>).<span class="ruby-identifier">values_at</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">key_columns</span>)
405
+ <span class="ruby-identifier">key_value</span> = <span class="ruby-identifier">key_values</span>[<span class="ruby-identifier">key</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">key_values</span>[<span class="ruby-identifier">key</span>] = { <span class="ruby-identifier">name</span><span class="ruby-operator">:</span> <span class="ruby-identifier">key</span>,
406
+ <span class="ruby-identifier">elements</span><span class="ruby-operator">:</span> <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">0</span>),
407
+ <span class="ruby-identifier">sum</span><span class="ruby-operator">:</span> <span class="ruby-value">0</span> }
381
408
  <span class="ruby-identifier">result</span>.<span class="ruby-identifier">chomp</span>.<span class="ruby-identifier">split</span>(<span class="ruby-string">&#39;;&#39;</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">column</span><span class="ruby-operator">|</span>
382
409
  <span class="ruby-identifier">heading</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">column</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">heading</span>.<span class="ruby-identifier">index</span>(<span class="ruby-identifier">column</span>).<span class="ruby-identifier">nil?</span>
383
410
  <span class="ruby-identifier">key_value</span>[<span class="ruby-value">:elements</span>][<span class="ruby-identifier">column</span>] <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
411
+ <span class="ruby-identifier">key_value</span>[<span class="ruby-value">:sum</span>] <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
384
412
  <span class="ruby-identifier">sums</span>[<span class="ruby-identifier">column</span>] <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
385
413
  <span class="ruby-keyword">end</span>
386
414
  <span class="ruby-keyword">end</span>
387
415
  <span class="ruby-keyword">end</span>
416
+ <span class="ruby-keyword">unless</span> <span class="ruby-identifier">sum_col_title</span>.<span class="ruby-identifier">nil?</span>
417
+ <span class="ruby-identifier">heading</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">sum_col_title</span>
418
+ <span class="ruby-identifier">sums</span>[<span class="ruby-identifier">sum_col_title</span>] = <span class="ruby-identifier">sums</span>.<span class="ruby-identifier">values</span>.<span class="ruby-identifier">inject</span>(<span class="ruby-value">:+</span>)
419
+ <span class="ruby-keyword">end</span>
388
420
  <span class="ruby-keyword">end</span></pre>
389
421
  </div>
390
422
 
@@ -409,28 +441,29 @@ cols, date-format and indicator whether to add a sum row</p>
409
441
 
410
442
  <div class="method-description">
411
443
 
412
- <p>Writes the results</p>
444
+ <p>Writes the count results</p>
413
445
 
414
446
 
415
447
 
416
448
 
417
449
  <div class="method-source-code" id="write_result-source">
418
- <pre><span class="ruby-comment"># File lib/sycsvpro/counter.rb, line 73</span>
450
+ <pre><span class="ruby-comment"># File lib/sycsvpro/counter.rb, line 83</span>
419
451
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">write_result</span>
420
- <span class="ruby-identifier">sum_line</span> = [<span class="ruby-identifier">sum_title</span>]
452
+ <span class="ruby-identifier">sum_line</span> = [<span class="ruby-identifier">sum_row_title</span>] <span class="ruby-operator">+</span> [<span class="ruby-string">&#39;&#39;</span>] <span class="ruby-operator">*</span> (<span class="ruby-identifier">key_titles</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>)
421
453
  <span class="ruby-identifier">heading</span>.<span class="ruby-identifier">sort</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">h</span><span class="ruby-operator">|</span>
422
454
  <span class="ruby-identifier">sum_line</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">sums</span>[<span class="ruby-identifier">h</span>]
423
455
  <span class="ruby-keyword">end</span>
424
456
  <span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>;
425
457
  <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">outfile</span>, <span class="ruby-string">&#39;w&#39;</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">out</span><span class="ruby-operator">|</span>
426
458
  <span class="ruby-identifier">out</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">sum_line</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">&#39;;&#39;</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">row</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">sum_row</span> ; <span class="ruby-identifier">row</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
427
- <span class="ruby-identifier">out</span>.<span class="ruby-identifier">puts</span> ([<span class="ruby-string">&quot;key&quot;</span>] <span class="ruby-operator">+</span> <span class="ruby-identifier">heading</span>.<span class="ruby-identifier">sort</span>).<span class="ruby-identifier">join</span>(<span class="ruby-string">&#39;;&#39;</span>)
459
+ <span class="ruby-identifier">out</span>.<span class="ruby-identifier">puts</span> (<span class="ruby-identifier">key_titles</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">heading</span>.<span class="ruby-identifier">sort</span>).<span class="ruby-identifier">join</span>(<span class="ruby-string">&#39;;&#39;</span>)
428
460
  <span class="ruby-identifier">key_values</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
429
461
  <span class="ruby-identifier">out</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">sum_line</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">&#39;;&#39;</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">row</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">sum_row</span> ; <span class="ruby-identifier">row</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
430
462
  <span class="ruby-identifier">line</span> = [<span class="ruby-identifier">k</span>]
431
463
  <span class="ruby-identifier">heading</span>.<span class="ruby-identifier">sort</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">h</span><span class="ruby-operator">|</span>
432
- <span class="ruby-identifier">line</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">v</span>[<span class="ruby-value">:elements</span>][<span class="ruby-identifier">h</span>]
464
+ <span class="ruby-identifier">line</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">v</span>[<span class="ruby-value">:elements</span>][<span class="ruby-identifier">h</span>] <span class="ruby-keyword">unless</span> <span class="ruby-identifier">h</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">sum_col_title</span>
433
465
  <span class="ruby-keyword">end</span>
466
+ <span class="ruby-identifier">line</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">v</span>[<span class="ruby-value">:sum</span>] <span class="ruby-keyword">unless</span> <span class="ruby-identifier">sum_col_title</span>.<span class="ruby-identifier">nil?</span>
434
467
  <span class="ruby-identifier">out</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">line</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">&#39;;&#39;</span>)
435
468
  <span class="ruby-keyword">end</span>
436
469
  <span class="ruby-keyword">end</span>
@@ -259,7 +259,7 @@ otherwise false</p>
259
259
 
260
260
 
261
261
  <div class="method-source-code" id="has_filter-3F-source">
262
- <pre><span class="ruby-comment"># File lib/sycsvpro/filter.rb, line 64</span>
262
+ <pre><span class="ruby-comment"># File lib/sycsvpro/filter.rb, line 67</span>
263
263
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">has_filter?</span>
264
264
  <span class="ruby-keyword">return</span> <span class="ruby-operator">!</span>(<span class="ruby-identifier">filter</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-keyword">and</span> <span class="ruby-identifier">pattern</span>.<span class="ruby-identifier">empty?</span>)
265
265
  <span class="ruby-keyword">end</span></pre>
@@ -299,14 +299,16 @@ otherwise false</p>
299
299
  <div class="method-source-code" id="method_missing-source">
300
300
  <pre><span class="ruby-comment"># File lib/sycsvpro/filter.rb, line 32</span>
301
301
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">id</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
302
- <span class="ruby-keyword">return</span> <span class="ruby-identifier">equal</span>(<span class="ruby-node">$1</span>, <span class="ruby-identifier">args</span>, <span class="ruby-identifier">block</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">id</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/^(\d+)$/</span>
303
- <span class="ruby-keyword">return</span> <span class="ruby-identifier">equal_type</span>(<span class="ruby-node">$1</span>, <span class="ruby-node">$2</span>, <span class="ruby-identifier">args</span>, <span class="ruby-identifier">block</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">id</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/^(s|n|d):(\d+)$/</span>
304
- <span class="ruby-keyword">return</span> <span class="ruby-identifier">range</span>(<span class="ruby-node">$1</span>, <span class="ruby-node">$2</span>, <span class="ruby-identifier">args</span>, <span class="ruby-identifier">block</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">id</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/^(\d+)-(\d+)$/</span>
305
- <span class="ruby-keyword">return</span> <span class="ruby-identifier">range_type</span>(<span class="ruby-node">$1</span>, <span class="ruby-node">$2</span>, <span class="ruby-node">$3</span>, <span class="ruby-identifier">args</span>, <span class="ruby-identifier">block</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">id</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/^(s|n|d):(\d+)-(\d+)$/</span>
306
- <span class="ruby-keyword">return</span> <span class="ruby-identifier">regex</span>(<span class="ruby-node">$1</span>, <span class="ruby-identifier">args</span>, <span class="ruby-identifier">block</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">id</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/^\/(.*)\/$/</span>
307
- <span class="ruby-keyword">return</span> <span class="ruby-identifier">col_regex</span>(<span class="ruby-node">$1</span>, <span class="ruby-node">$2</span>, <span class="ruby-identifier">args</span>, <span class="ruby-identifier">block</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">id</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/^(\d+):\/(.*)\/$/</span>
308
- <span class="ruby-keyword">return</span> <span class="ruby-identifier">date</span>(<span class="ruby-node">$1</span>, <span class="ruby-node">$2</span>, <span class="ruby-node">$3</span>, <span class="ruby-identifier">args</span>, <span class="ruby-identifier">block</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">id</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/^(\d+):(&lt;|=|&gt;)(\d+.\d+.\d+)/</span>
309
- <span class="ruby-keyword">return</span> <span class="ruby-identifier">date_range</span>(<span class="ruby-node">$1</span>, <span class="ruby-node">$2</span>, <span class="ruby-node">$3</span>, <span class="ruby-identifier">args</span>, <span class="ruby-identifier">block</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">id</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/^(\d+):(\d+.\d+.\d+.)-(\d+.\d+.\d+)$/</span>
302
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">equal</span>(<span class="ruby-node">$1</span>, <span class="ruby-identifier">args</span>, <span class="ruby-identifier">block</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">id</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/^(\d+)$/</span>
303
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">equal_type</span>(<span class="ruby-node">$1</span>, <span class="ruby-node">$2</span>, <span class="ruby-identifier">args</span>, <span class="ruby-identifier">block</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">id</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/^(s|n|d):(\d+)$/</span>
304
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">range</span>(<span class="ruby-node">$1</span>, <span class="ruby-node">$2</span>, <span class="ruby-identifier">args</span>, <span class="ruby-identifier">block</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">id</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/^(\d+)-(\d+)$/</span>
305
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">range_type</span>(<span class="ruby-node">$1</span>, <span class="ruby-node">$2</span>, <span class="ruby-node">$3</span>, <span class="ruby-identifier">args</span>, <span class="ruby-identifier">block</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">id</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/^(s|n|d):(\d+)-(\d+)$/</span>
306
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">regex</span>(<span class="ruby-node">$1</span>, <span class="ruby-identifier">args</span>, <span class="ruby-identifier">block</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">id</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/^\/(.*)\/$/</span>
307
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">col_regex</span>(<span class="ruby-node">$1</span>, <span class="ruby-node">$2</span>, <span class="ruby-identifier">args</span>, <span class="ruby-identifier">block</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">id</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/^(\d+):\/(.*)\/$/</span>
308
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">date</span>(<span class="ruby-node">$1</span>, <span class="ruby-node">$2</span>, <span class="ruby-node">$3</span>, <span class="ruby-identifier">args</span>, <span class="ruby-identifier">block</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">id</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/^(\d+):(&lt;|=|&gt;)(\d+.\d+.\d+)/</span>
309
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">date_range</span>(<span class="ruby-node">$1</span>, <span class="ruby-node">$2</span>, <span class="ruby-node">$3</span>, <span class="ruby-identifier">args</span>, <span class="ruby-identifier">block</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">id</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/^(\d+):(\d+.\d+.\d+.)-(\d+.\d+.\d+)$/</span>
310
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">number</span>(<span class="ruby-node">$1</span>, <span class="ruby-node">$2</span>, <span class="ruby-node">$3</span>, <span class="ruby-identifier">args</span>, <span class="ruby-identifier">block</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">id</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/^(\d+):(&lt;|=|&gt;)(\d+)/</span>
311
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">number_range</span>(<span class="ruby-node">$1</span>, <span class="ruby-node">$2</span>, <span class="ruby-node">$3</span>, <span class="ruby-identifier">args</span>, <span class="ruby-identifier">block</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">id</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/^(\d):(\d+)-(\d+)/</span>
310
312
  <span class="ruby-keyword">super</span>
311
313
  <span class="ruby-keyword">end</span></pre>
312
314
  </div>
@@ -338,7 +340,7 @@ otherwise false</p>
338
340
 
339
341
 
340
342
  <div class="method-source-code" id="pivot_each_column-source">
341
- <pre><span class="ruby-comment"># File lib/sycsvpro/filter.rb, line 50</span>
343
+ <pre><span class="ruby-comment"># File lib/sycsvpro/filter.rb, line 52</span>
342
344
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">pivot_each_column</span>(<span class="ruby-identifier">values</span>=[])
343
345
  <span class="ruby-identifier">pivot</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">column</span>, <span class="ruby-identifier">parameters</span><span class="ruby-operator">|</span>
344
346
  <span class="ruby-identifier">value</span> = <span class="ruby-identifier">values</span>[<span class="ruby-identifier">parameters</span>[<span class="ruby-value">:col</span>].<span class="ruby-identifier">to_i</span>]
@@ -346,7 +348,8 @@ otherwise false</p>
346
348
  <span class="ruby-identifier">match</span> = <span class="ruby-keyword">false</span>
347
349
  <span class="ruby-keyword">begin</span>
348
350
  <span class="ruby-identifier">match</span> = <span class="ruby-identifier">eval</span>(<span class="ruby-identifier">parameters</span>[<span class="ruby-value">:operation</span>].<span class="ruby-identifier">gsub</span>(<span class="ruby-string">&#39;[value]&#39;</span>, <span class="ruby-identifier">value</span>))
349
- <span class="ruby-keyword">rescue</span>
351
+ <span class="ruby-keyword">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">e</span>
352
+
350
353
  <span class="ruby-keyword">end</span>
351
354
  <span class="ruby-keyword">yield</span> <span class="ruby-identifier">column</span>, <span class="ruby-identifier">match</span>
352
355
  <span class="ruby-keyword">end</span>
@@ -380,7 +383,7 @@ otherwise false</p>
380
383
 
381
384
 
382
385
  <div class="method-source-code" id="process-source">
383
- <pre><span class="ruby-comment"># File lib/sycsvpro/filter.rb, line 45</span>
386
+ <pre><span class="ruby-comment"># File lib/sycsvpro/filter.rb, line 47</span>
384
387
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">process</span>(<span class="ruby-identifier">object</span>, <span class="ruby-identifier">options</span>={})
385
388
  <span class="ruby-identifier">raise</span> <span class="ruby-string">&#39;Needs to be overridden by sub class&#39;</span>
386
389
  <span class="ruby-keyword">end</span></pre>
data/html/created.rid CHANGED
@@ -1,16 +1,17 @@
1
- Sun, 02 Mar 2014 21:21:05 +0100
2
- README.rdoc Sun, 23 Feb 2014 19:23:16 +0100
3
- lib/sycsvpro.rb Wed, 26 Feb 2014 20:27:40 +0100
1
+ Thu, 06 Mar 2014 19:02:19 +0100
2
+ README.rdoc Thu, 06 Mar 2014 18:59:37 +0100
3
+ lib/sycsvpro.rb Tue, 04 Mar 2014 21:03:44 +0100
4
+ lib/sycsvpro/aggregator.rb Tue, 04 Mar 2014 21:40:52 +0100
4
5
  lib/sycsvpro/allocator.rb Wed, 19 Feb 2014 20:34:28 +0100
5
6
  lib/sycsvpro/analyzer.rb Tue, 18 Feb 2014 19:57:28 +0100
6
- lib/sycsvpro/calculator.rb Tue, 18 Feb 2014 19:53:34 +0100
7
+ lib/sycsvpro/calculator.rb Thu, 06 Mar 2014 18:44:54 +0100
7
8
  lib/sycsvpro/collector.rb Sun, 16 Feb 2014 20:59:27 +0100
8
9
  lib/sycsvpro/column_filter.rb Fri, 28 Feb 2014 08:24:47 +0100
9
10
  lib/sycsvpro/column_type_filter.rb Fri, 28 Feb 2014 18:17:46 +0100
10
- lib/sycsvpro/counter.rb Fri, 21 Feb 2014 21:11:49 +0100
11
+ lib/sycsvpro/counter.rb Thu, 06 Mar 2014 15:41:41 +0100
11
12
  lib/sycsvpro/dsl.rb Sun, 02 Mar 2014 17:59:05 +0100
12
13
  lib/sycsvpro/extractor.rb Sat, 22 Feb 2014 17:58:18 +0100
13
- lib/sycsvpro/filter.rb Tue, 25 Feb 2014 21:18:25 +0100
14
+ lib/sycsvpro/filter.rb Thu, 06 Mar 2014 12:08:45 +0100
14
15
  lib/sycsvpro/header.rb Tue, 18 Feb 2014 19:50:26 +0100
15
16
  lib/sycsvpro/inserter.rb Tue, 25 Feb 2014 22:40:30 +0100
16
17
  lib/sycsvpro/mapper.rb Tue, 18 Feb 2014 19:45:47 +0100
@@ -19,5 +20,5 @@ lib/sycsvpro/row_filter.rb Tue, 18 Feb 2014 19:45:25 +0100
19
20
  lib/sycsvpro/script_creator.rb Sun, 23 Feb 2014 20:35:21 +0100
20
21
  lib/sycsvpro/script_list.rb Sun, 23 Feb 2014 21:03:22 +0100
21
22
  lib/sycsvpro/sorter.rb Sun, 02 Mar 2014 21:07:30 +0100
22
- lib/sycsvpro/version.rb Fri, 28 Feb 2014 08:30:53 +0100
23
- bin/sycsvpro Sun, 02 Mar 2014 20:54:54 +0100
23
+ lib/sycsvpro/version.rb Tue, 04 Mar 2014 21:35:59 +0100
24
+ bin/sycsvpro Thu, 06 Mar 2014 19:02:12 +0100
data/html/index.html CHANGED
@@ -76,6 +76,8 @@
76
76
 
77
77
  <li><a href="./Sycsvpro.html">Sycsvpro</a>
78
78
 
79
+ <li><a href="./Sycsvpro/Aggregator.html">Sycsvpro::Aggregator</a>
80
+
79
81
  <li><a href="./Sycsvpro/Allocator.html">Sycsvpro::Allocator</a>
80
82
 
81
83
  <li><a href="./Sycsvpro/Analyzer.html">Sycsvpro::Analyzer</a>
@@ -183,32 +185,34 @@ bin</pre>
183
185
 
184
186
  <p>VERSION</p>
185
187
 
186
- <pre>0.0.8</pre>
188
+ <pre>0.1.0</pre>
187
189
 
188
190
  <p>GLOBAL OPTIONS</p>
189
191
 
190
192
  <pre>-f, --file=FILE - CSV file to operate on (default: none)
191
193
  --help - Show this message
192
194
  -o, --out=OUT_FILE - CSV file to write the result to (default: none)
195
+ -s, --[no-]silent - Silent progress doesn&#39;t show progress indicator
193
196
  --version - Display the program version</pre>
194
197
 
195
198
  <p>COMMANDS</p>
196
199
 
197
- <pre>allocate - Allocate specified columns from the file to a key value
198
- analyze - Analyze the CSV file regarding columns, rows and content
199
- calc - Process math operations on columns
200
- collect - Collect values of specified rows and columns from the file and group them in
201
- categories
202
- count - Counts the occurences of column values. Uses column values as headings with count as
203
- values. Columns with a condition will be added as new columns and the condition will
204
- be set as column name. Optionally adds a sum row
205
- execute - Executes the code provided in a file
206
- extract - Extract specified rows and columns from the file
207
- help - Shows a list of commands or help for one command
208
- insert - Inserts rows from a file to a csv-file
209
- list - List scripts in the scripts directory with optionally listing methods
210
- map - Map values in columns to new values
211
- sort - Sort columns based on column values</pre>
200
+ <pre>aggregate - Aggregates the occurences of row values. Optionally adds a sum row
201
+ allocate - Allocate specified columns from the file to a key value
202
+ analyze - Analyze the CSV file regarding columns, rows and content
203
+ calc - Process math operations on columns. Optionally adds a sum row
204
+ collect - Collect values of specified rows and columns from the file and group them in
205
+ categories
206
+ count - Counts the occurences of column values. Uses column values as headings with count as
207
+ values. Columns with a condition will be added as new columns and the condition will
208
+ be set as column name. Optionally adds a sum row
209
+ execute - Executes the code provided in a file
210
+ extract - Extract specified rows and columns from the file
211
+ help - Shows a list of commands or help for one command
212
+ insert - Inserts rows from a file to a csv-file
213
+ list - List scripts in the scripts directory with optionally listing methods
214
+ map - Map values in columns to new values
215
+ sort - Sort columns based on column values</pre>
212
216
  </main>
213
217
 
214
218
 
@@ -1 +1 @@
1
- var search_data = {"index":{"searchIndex":["dsl","object","sycsvpro","allocator","analyzer","calculator","collector","columnfilter","columntypefilter","counter","extractor","filter","header","inserter","mapper","profiler","rowfilter","scriptcreator","scriptlist","sorter","execute()","execute()","execute()","execute()","execute()","execute()","execute()","execute()","execute()","execute()","has_filter?()","method_missing()","method_missing()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","pivot_each_column()","process()","process()","process()","process()","process()","process_file()","result()","rows()","str2utf8()","unstring()","write_result()","write_to()","readme"],"longSearchIndex":["dsl","object","sycsvpro","sycsvpro::allocator","sycsvpro::analyzer","sycsvpro::calculator","sycsvpro::collector","sycsvpro::columnfilter","sycsvpro::columntypefilter","sycsvpro::counter","sycsvpro::extractor","sycsvpro::filter","sycsvpro::header","sycsvpro::inserter","sycsvpro::mapper","sycsvpro::profiler","sycsvpro::rowfilter","sycsvpro::scriptcreator","sycsvpro::scriptlist","sycsvpro::sorter","sycsvpro::allocator#execute()","sycsvpro::calculator#execute()","sycsvpro::collector#execute()","sycsvpro::counter#execute()","sycsvpro::extractor#execute()","sycsvpro::inserter#execute()","sycsvpro::mapper#execute()","sycsvpro::profiler#execute()","sycsvpro::scriptlist#execute()","sycsvpro::sorter#execute()","sycsvpro::filter#has_filter?()","sycsvpro::calculator#method_missing()","sycsvpro::filter#method_missing()","sycsvpro::allocator::new()","sycsvpro::analyzer::new()","sycsvpro::calculator::new()","sycsvpro::collector::new()","sycsvpro::counter::new()","sycsvpro::extractor::new()","sycsvpro::filter::new()","sycsvpro::header::new()","sycsvpro::inserter::new()","sycsvpro::mapper::new()","sycsvpro::profiler::new()","sycsvpro::scriptcreator::new()","sycsvpro::scriptlist::new()","sycsvpro::sorter::new()","sycsvpro::filter#pivot_each_column()","sycsvpro::columnfilter#process()","sycsvpro::columntypefilter#process()","sycsvpro::filter#process()","sycsvpro::header#process()","sycsvpro::rowfilter#process()","sycsvpro::counter#process_file()","sycsvpro::analyzer#result()","dsl#rows()","dsl#str2utf8()","dsl#unstring()","sycsvpro::counter#write_result()","dsl#write_to()",""],"info":[["Dsl","","Dsl.html","","<p>Methods to be used in customer specific script files\n"],["Object","","Object.html","",""],["Sycsvpro","","Sycsvpro.html","","<p>Operating csv files\n<p>Operating csv files\n<p>Operating csv files\n"],["Sycsvpro::Allocator","","Sycsvpro/Allocator.html","","<p>Allocates columns to a key column\n"],["Sycsvpro::Analyzer","","Sycsvpro/Analyzer.html","","<p>Analyzes the file structure\n"],["Sycsvpro::Calculator","","Sycsvpro/Calculator.html","","<p>Processes arithmetic operations on columns of a csv file. A column value\nhas to be a number. Possible …\n"],["Sycsvpro::Collector","","Sycsvpro/Collector.html","","<p>Collects values from rows and groups them in categories\n"],["Sycsvpro::ColumnFilter","","Sycsvpro/ColumnFilter.html","","<p>Creates a new column filter\n"],["Sycsvpro::ColumnTypeFilter","","Sycsvpro/ColumnTypeFilter.html","","<p>Create a filter based on a colum and its type\n"],["Sycsvpro::Counter","","Sycsvpro/Counter.html","","<p>Creates a new counter that counts values and uses the values as column\nnames and uses the count as the …\n"],["Sycsvpro::Extractor","","Sycsvpro/Extractor.html","","<p>Extracts rows and columns from a csv file\n"],["Sycsvpro::Filter","","Sycsvpro/Filter.html","","<p>Creates a new filter that can be extended by sub-classes. A sub-class needs\nto override the process method …\n"],["Sycsvpro::Header","","Sycsvpro/Header.html","","<p>Creates a header\n"],["Sycsvpro::Inserter","","Sycsvpro/Inserter.html","","<p>Insert a text file into another textfile at a specified position\n"],["Sycsvpro::Mapper","","Sycsvpro/Mapper.html","","<p>Map values to new values described in a mapping file\n"],["Sycsvpro::Profiler","","Sycsvpro/Profiler.html","","<p>A profiler takes a Ruby script and executes the provided method in the\nscript\n"],["Sycsvpro::RowFilter","","Sycsvpro/RowFilter.html","","<p>Filters rows based on provided patterns\n"],["Sycsvpro::ScriptCreator","","Sycsvpro/ScriptCreator.html","","<p>Creates a ruby script scaffold\n"],["Sycsvpro::ScriptList","","Sycsvpro/ScriptList.html","","<p>Lists the contents of the script directory. Optionally listing a specific\nscript file and also optionally …\n"],["Sycsvpro::Sorter","","Sycsvpro/Sorter.html","","<p>Sorts an input file based on a column sort filter\n"],["execute","Sycsvpro::Allocator","Sycsvpro/Allocator.html#method-i-execute","()","<p>Executes the allocator and assigns column values to the key\n"],["execute","Sycsvpro::Calculator","Sycsvpro/Calculator.html#method-i-execute","()","<p>Executes the calculator\n"],["execute","Sycsvpro::Collector","Sycsvpro/Collector.html#method-i-execute","()","<p>Execute the collector\n"],["execute","Sycsvpro::Counter","Sycsvpro/Counter.html#method-i-execute","()","<p>Executes the counter\n"],["execute","Sycsvpro::Extractor","Sycsvpro/Extractor.html#method-i-execute","()","<p>Executes the extractor\n"],["execute","Sycsvpro::Inserter","Sycsvpro/Inserter.html#method-i-execute","()","<p>Inserts the content of the insert-file at the specified positions (top or\nbottom)\n"],["execute","Sycsvpro::Mapper","Sycsvpro/Mapper.html#method-i-execute","()","<p>Executes the mapper\n"],["execute","Sycsvpro::Profiler","Sycsvpro/Profiler.html#method-i-execute","(method)","<p>Executes the provided method in the Ruby script\n"],["execute","Sycsvpro::ScriptList","Sycsvpro/ScriptList.html#method-i-execute","()","<p>Retrieves the information about scripts and methods from the script\ndirectory\n"],["execute","Sycsvpro::Sorter","Sycsvpro/Sorter.html#method-i-execute","()","<p>Sorts the data of the infile\n"],["has_filter?","Sycsvpro::Filter","Sycsvpro/Filter.html#method-i-has_filter-3F","()","<p>Checks whether a filter has been set. Returns true if filter has been set\notherwise false\n"],["method_missing","Sycsvpro::Calculator","Sycsvpro/Calculator.html#method-i-method_missing","(id, *args, &block)","<p>Retrieves the values from a row as the result of a arithmetic operation\n"],["method_missing","Sycsvpro::Filter","Sycsvpro/Filter.html#method-i-method_missing","(id, *args, &block)","<p>Creates the filters based on the given patterns\n"],["new","Sycsvpro::Allocator","Sycsvpro/Allocator.html#method-c-new","(options={})","<p>Creates a new allocator. Options are infile, outfile, key, rows and columns\nto allocate to key\n"],["new","Sycsvpro::Analyzer","Sycsvpro/Analyzer.html#method-c-new","(file)","<p>Creates a new analyzer\n"],["new","Sycsvpro::Calculator","Sycsvpro/Calculator.html#method-c-new","(options={})","<p>Creates a new Calculator. Options expects :infile, :outfile, :rows and\n:columns. Optionally a header …\n"],["new","Sycsvpro::Collector","Sycsvpro/Collector.html#method-c-new","(options={})","<p>Creates a new Collector\n"],["new","Sycsvpro::Counter","Sycsvpro/Counter.html#method-c-new","(options={})","<p>Creates a new counter. Takes as attributes infile, outfile, key, rows,\ncols, date-format and indicator …\n"],["new","Sycsvpro::Extractor","Sycsvpro/Extractor.html#method-c-new","(options={})","<p>Creates a new extractor\n"],["new","Sycsvpro::Filter","Sycsvpro/Filter.html#method-c-new","(values, options={})","<p>Creates a new filter\n"],["new","Sycsvpro::Header","Sycsvpro/Header.html#method-c-new","(header)","<p>Create a new header\n"],["new","Sycsvpro::Inserter","Sycsvpro/Inserter.html#method-c-new","(options={})","<p>Creates an Inserter and takes options infile, outfile, insert-file and\nposition where to insert the insert-file …\n"],["new","Sycsvpro::Mapper","Sycsvpro/Mapper.html#method-c-new","(options={})","<p>Creates new mapper\n"],["new","Sycsvpro::Profiler","Sycsvpro/Profiler.html#method-c-new","(pro_file)","<p>Creates a new profiler\n"],["new","Sycsvpro::ScriptCreator","Sycsvpro/ScriptCreator.html#method-c-new","(options={})","<p>Creates a new ScriptCreator\n"],["new","Sycsvpro::ScriptList","Sycsvpro/ScriptList.html#method-c-new","(options={})","<p>Creates a new ScriptList. Takes params script_dir, script_file and\nshow_methods\n"],["new","Sycsvpro::Sorter","Sycsvpro/Sorter.html#method-c-new","(options={})","<p>Creates a Sorter and takes as options infile, outfile, rows, cols including\ntypes and a date format for …\n"],["pivot_each_column","Sycsvpro::Filter","Sycsvpro/Filter.html#method-i-pivot_each_column","(values=[])","<p>Yields the column value and whether the filter matches the column\n"],["process","Sycsvpro::ColumnFilter","Sycsvpro/ColumnFilter.html#method-i-process","(object, options={})","<p>Processes the filter and returns the values that respect the filter\n"],["process","Sycsvpro::ColumnTypeFilter","Sycsvpro/ColumnTypeFilter.html#method-i-process","(object, options={})","<p>Processes the filter and returns the filtered columns\n"],["process","Sycsvpro::Filter","Sycsvpro/Filter.html#method-i-process","(object, options={})","<p>Processes the filter. Needs to be overridden by the sub-class\n"],["process","Sycsvpro::Header","Sycsvpro/Header.html#method-i-process","(line)","<p>Returns the header\n"],["process","Sycsvpro::RowFilter","Sycsvpro/RowFilter.html#method-i-process","(object, options={})","<p>Processes the filter on the given row\n"],["process_file","Sycsvpro::Counter","Sycsvpro/Counter.html#method-i-process_file","()","<p>Processes the counting on the in file\n"],["result","Sycsvpro::Analyzer","Sycsvpro/Analyzer.html#method-i-result","()","<p>Analyzes the file and returns the result\n"],["rows","Dsl","Dsl.html#method-i-rows","(options={})","<p>Retrieves rows and columns from the file and returns them to the block\nprovided by the caller\n"],["str2utf8","Dsl","Dsl.html#method-i-str2utf8","(str)","<p>Remove non-UTF chars from string\n"],["unstring","Dsl","Dsl.html#method-i-unstring","(line)","<p>Remove leading and trailing “ and spaces as well as reducing more than 2\nspaces between words from …\n"],["write_result","Sycsvpro::Counter","Sycsvpro/Counter.html#method-i-write_result","()","<p>Writes the results\n"],["write_to","Dsl","Dsl.html#method-i-write_to","(file)","<p>writes values provided by a block to the given file\n"],["README","","README_rdoc.html","","<p>sycsvpro\n<p>Author &mdash; Pierre Sugar (pierre@sugaryourcoffee.de)\n<p>Copyright &mdash; Copyright © 2014 by Pierre Sugar\n"]]}}
1
+ var search_data = {"index":{"searchIndex":["dsl","object","sycsvpro","aggregator","allocator","analyzer","calculator","collector","columnfilter","columntypefilter","counter","extractor","filter","header","inserter","mapper","profiler","rowfilter","scriptcreator","scriptlist","sorter","execute()","execute()","execute()","execute()","execute()","execute()","execute()","execute()","execute()","execute()","execute()","has_filter?()","method_missing()","method_missing()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","pivot_each_column()","process()","process()","process()","process()","process()","process_aggregation()","process_count()","result()","rows()","set_max_row()","str2utf8()","unstring()","write_result()","write_result()","write_to()","readme"],"longSearchIndex":["dsl","object","sycsvpro","sycsvpro::aggregator","sycsvpro::allocator","sycsvpro::analyzer","sycsvpro::calculator","sycsvpro::collector","sycsvpro::columnfilter","sycsvpro::columntypefilter","sycsvpro::counter","sycsvpro::extractor","sycsvpro::filter","sycsvpro::header","sycsvpro::inserter","sycsvpro::mapper","sycsvpro::profiler","sycsvpro::rowfilter","sycsvpro::scriptcreator","sycsvpro::scriptlist","sycsvpro::sorter","sycsvpro::aggregator#execute()","sycsvpro::allocator#execute()","sycsvpro::calculator#execute()","sycsvpro::collector#execute()","sycsvpro::counter#execute()","sycsvpro::extractor#execute()","sycsvpro::inserter#execute()","sycsvpro::mapper#execute()","sycsvpro::profiler#execute()","sycsvpro::scriptlist#execute()","sycsvpro::sorter#execute()","sycsvpro::filter#has_filter?()","sycsvpro::calculator#method_missing()","sycsvpro::filter#method_missing()","sycsvpro::aggregator::new()","sycsvpro::allocator::new()","sycsvpro::analyzer::new()","sycsvpro::calculator::new()","sycsvpro::collector::new()","sycsvpro::counter::new()","sycsvpro::extractor::new()","sycsvpro::filter::new()","sycsvpro::header::new()","sycsvpro::inserter::new()","sycsvpro::mapper::new()","sycsvpro::profiler::new()","sycsvpro::scriptcreator::new()","sycsvpro::scriptlist::new()","sycsvpro::sorter::new()","sycsvpro::filter#pivot_each_column()","sycsvpro::columnfilter#process()","sycsvpro::columntypefilter#process()","sycsvpro::filter#process()","sycsvpro::header#process()","sycsvpro::rowfilter#process()","sycsvpro::aggregator#process_aggregation()","sycsvpro::counter#process_count()","sycsvpro::analyzer#result()","dsl#rows()","object#set_max_row()","dsl#str2utf8()","dsl#unstring()","sycsvpro::aggregator#write_result()","sycsvpro::counter#write_result()","dsl#write_to()",""],"info":[["Dsl","","Dsl.html","","<p>Methods to be used in customer specific script files\n"],["Object","","Object.html","",""],["Sycsvpro","","Sycsvpro.html","","<p>Operating csv files\n<p>Operating csv files\n<p>Operating csv files\n"],["Sycsvpro::Aggregator","","Sycsvpro/Aggregator.html","","<p>An Aggregator counts specified row values and adds a sum to the end of the\nrow\n"],["Sycsvpro::Allocator","","Sycsvpro/Allocator.html","","<p>Allocates columns to a key column\n"],["Sycsvpro::Analyzer","","Sycsvpro/Analyzer.html","","<p>Analyzes the file structure\n"],["Sycsvpro::Calculator","","Sycsvpro/Calculator.html","","<p>Processes arithmetic operations on columns of a csv file. A column value\nhas to be a number. Possible …\n"],["Sycsvpro::Collector","","Sycsvpro/Collector.html","","<p>Collects values from rows and groups them in categories\n"],["Sycsvpro::ColumnFilter","","Sycsvpro/ColumnFilter.html","","<p>Creates a new column filter\n"],["Sycsvpro::ColumnTypeFilter","","Sycsvpro/ColumnTypeFilter.html","","<p>Create a filter based on a colum and its type\n"],["Sycsvpro::Counter","","Sycsvpro/Counter.html","","<p>Counter counts values and uses the values as column names and uses the\ncount as the column value\n"],["Sycsvpro::Extractor","","Sycsvpro/Extractor.html","","<p>Extracts rows and columns from a csv file\n"],["Sycsvpro::Filter","","Sycsvpro/Filter.html","","<p>Creates a new filter that can be extended by sub-classes. A sub-class needs\nto override the process method …\n"],["Sycsvpro::Header","","Sycsvpro/Header.html","","<p>Creates a header\n"],["Sycsvpro::Inserter","","Sycsvpro/Inserter.html","","<p>Insert a text file into another textfile at a specified position\n"],["Sycsvpro::Mapper","","Sycsvpro/Mapper.html","","<p>Map values to new values described in a mapping file\n"],["Sycsvpro::Profiler","","Sycsvpro/Profiler.html","","<p>A profiler takes a Ruby script and executes the provided method in the\nscript\n"],["Sycsvpro::RowFilter","","Sycsvpro/RowFilter.html","","<p>Filters rows based on provided patterns\n"],["Sycsvpro::ScriptCreator","","Sycsvpro/ScriptCreator.html","","<p>Creates a ruby script scaffold\n"],["Sycsvpro::ScriptList","","Sycsvpro/ScriptList.html","","<p>Lists the contents of the script directory. Optionally listing a specific\nscript file and also optionally …\n"],["Sycsvpro::Sorter","","Sycsvpro/Sorter.html","","<p>Sorts an input file based on a column sort filter\n"],["execute","Sycsvpro::Aggregator","Sycsvpro/Aggregator.html#method-i-execute","()","<p>Executes the aggregator\n"],["execute","Sycsvpro::Allocator","Sycsvpro/Allocator.html#method-i-execute","()","<p>Executes the allocator and assigns column values to the key\n"],["execute","Sycsvpro::Calculator","Sycsvpro/Calculator.html#method-i-execute","()","<p>Executes the calculator\n"],["execute","Sycsvpro::Collector","Sycsvpro/Collector.html#method-i-execute","()","<p>Execute the collector\n"],["execute","Sycsvpro::Counter","Sycsvpro/Counter.html#method-i-execute","()","<p>Executes the counter\n"],["execute","Sycsvpro::Extractor","Sycsvpro/Extractor.html#method-i-execute","()","<p>Executes the extractor\n"],["execute","Sycsvpro::Inserter","Sycsvpro/Inserter.html#method-i-execute","()","<p>Inserts the content of the insert-file at the specified positions (top or\nbottom)\n"],["execute","Sycsvpro::Mapper","Sycsvpro/Mapper.html#method-i-execute","()","<p>Executes the mapper\n"],["execute","Sycsvpro::Profiler","Sycsvpro/Profiler.html#method-i-execute","(method)","<p>Executes the provided method in the Ruby script\n"],["execute","Sycsvpro::ScriptList","Sycsvpro/ScriptList.html#method-i-execute","()","<p>Retrieves the information about scripts and methods from the script\ndirectory\n"],["execute","Sycsvpro::Sorter","Sycsvpro/Sorter.html#method-i-execute","()","<p>Sorts the data of the infile\n"],["has_filter?","Sycsvpro::Filter","Sycsvpro/Filter.html#method-i-has_filter-3F","()","<p>Checks whether a filter has been set. Returns true if filter has been set\notherwise false\n"],["method_missing","Sycsvpro::Calculator","Sycsvpro/Calculator.html#method-i-method_missing","(id, *args, &block)","<p>Retrieves the values from a row as the result of a arithmetic operation\n"],["method_missing","Sycsvpro::Filter","Sycsvpro/Filter.html#method-i-method_missing","(id, *args, &block)","<p>Creates the filters based on the given patterns\n"],["new","Sycsvpro::Aggregator","Sycsvpro/Aggregator.html#method-c-new","(options={})","<p>Creates a new aggregator. Takes as attributes infile, outfile, key, rows,\ncols, date-format and indicator …\n"],["new","Sycsvpro::Allocator","Sycsvpro/Allocator.html#method-c-new","(options={})","<p>Creates a new allocator. Options are infile, outfile, key, rows and columns\nto allocate to key\n"],["new","Sycsvpro::Analyzer","Sycsvpro/Analyzer.html#method-c-new","(file)","<p>Creates a new analyzer\n"],["new","Sycsvpro::Calculator","Sycsvpro/Calculator.html#method-c-new","(options={})","<p>Creates a new Calculator. Options expects :infile, :outfile, :rows and\n:columns. Optionally a header …\n"],["new","Sycsvpro::Collector","Sycsvpro/Collector.html#method-c-new","(options={})","<p>Creates a new Collector\n"],["new","Sycsvpro::Counter","Sycsvpro/Counter.html#method-c-new","(options={})","<p>Creates a new counter. Takes as attributes infile, outfile, key, rows,\ncols, date-format and indicator …\n"],["new","Sycsvpro::Extractor","Sycsvpro/Extractor.html#method-c-new","(options={})","<p>Creates a new extractor\n"],["new","Sycsvpro::Filter","Sycsvpro/Filter.html#method-c-new","(values, options={})","<p>Creates a new filter\n"],["new","Sycsvpro::Header","Sycsvpro/Header.html#method-c-new","(header)","<p>Create a new header\n"],["new","Sycsvpro::Inserter","Sycsvpro/Inserter.html#method-c-new","(options={})","<p>Creates an Inserter and takes options infile, outfile, insert-file and\nposition where to insert the insert-file …\n"],["new","Sycsvpro::Mapper","Sycsvpro/Mapper.html#method-c-new","(options={})","<p>Creates new mapper\n"],["new","Sycsvpro::Profiler","Sycsvpro/Profiler.html#method-c-new","(pro_file)","<p>Creates a new profiler\n"],["new","Sycsvpro::ScriptCreator","Sycsvpro/ScriptCreator.html#method-c-new","(options={})","<p>Creates a new ScriptCreator\n"],["new","Sycsvpro::ScriptList","Sycsvpro/ScriptList.html#method-c-new","(options={})","<p>Creates a new ScriptList. Takes params script_dir, script_file and\nshow_methods\n"],["new","Sycsvpro::Sorter","Sycsvpro/Sorter.html#method-c-new","(options={})","<p>Creates a Sorter and takes as options infile, outfile, rows, cols including\ntypes and a date format for …\n"],["pivot_each_column","Sycsvpro::Filter","Sycsvpro/Filter.html#method-i-pivot_each_column","(values=[])","<p>Yields the column value and whether the filter matches the column\n"],["process","Sycsvpro::ColumnFilter","Sycsvpro/ColumnFilter.html#method-i-process","(object, options={})","<p>Processes the filter and returns the values that respect the filter\n"],["process","Sycsvpro::ColumnTypeFilter","Sycsvpro/ColumnTypeFilter.html#method-i-process","(object, options={})","<p>Processes the filter and returns the filtered columns\n"],["process","Sycsvpro::Filter","Sycsvpro/Filter.html#method-i-process","(object, options={})","<p>Processes the filter. Needs to be overridden by the sub-class\n"],["process","Sycsvpro::Header","Sycsvpro/Header.html#method-i-process","(line)","<p>Returns the header\n"],["process","Sycsvpro::RowFilter","Sycsvpro/RowFilter.html#method-i-process","(object, options={})","<p>Processes the filter on the given row\n"],["process_aggregation","Sycsvpro::Aggregator","Sycsvpro/Aggregator.html#method-i-process_aggregation","()","<p>Process the aggregation of the key values\n"],["process_count","Sycsvpro::Counter","Sycsvpro/Counter.html#method-i-process_count","()","<p>Processes the counting on the in file\n"],["result","Sycsvpro::Analyzer","Sycsvpro/Analyzer.html#method-i-result","()","<p>Analyzes the file and returns the result\n"],["rows","Dsl","Dsl.html#method-i-rows","(options={})","<p>Retrieves rows and columns from the file and returns them to the block\nprovided by the caller\n"],["set_max_row","Object","Object.html#method-i-set_max_row","(options, max_row)","<p>the -r flag can take a EOF value which is replaced by the actual row value\nof the input file\n"],["str2utf8","Dsl","Dsl.html#method-i-str2utf8","(str)","<p>Remove non-UTF chars from string\n"],["unstring","Dsl","Dsl.html#method-i-unstring","(line)","<p>Remove leading and trailing “ and spaces as well as reducing more than 2\nspaces between words from …\n"],["write_result","Sycsvpro::Aggregator","Sycsvpro/Aggregator.html#method-i-write_result","()","<p>Writes the aggration results\n"],["write_result","Sycsvpro::Counter","Sycsvpro/Counter.html#method-i-write_result","()","<p>Writes the count results\n"],["write_to","Dsl","Dsl.html#method-i-write_to","(file)","<p>writes values provided by a block to the given file\n"],["README","","README_rdoc.html","","<p>sycsvpro\n<p>Author &mdash; Pierre Sugar (pierre@sugaryourcoffee.de)\n<p>Copyright &mdash; Copyright © 2014 by Pierre Sugar\n"]]}}
@@ -52,6 +52,9 @@
52
52
  <li class="module">
53
53
  <a href="Sycsvpro.html">Sycsvpro</a>
54
54
  </li>
55
+ <li class="class">
56
+ <a href="Sycsvpro/Aggregator.html">Sycsvpro::Aggregator</a>
57
+ </li>
55
58
  <li class="class">
56
59
  <a href="Sycsvpro/Allocator.html">Sycsvpro::Allocator</a>
57
60
  </li>
@@ -108,6 +111,31 @@
108
111
  <h2 id="methods">Methods</h2>
109
112
  <ul>
110
113
 
114
+ <li class="method">
115
+ <a href="Sycsvpro/Filter.html#method-c-new">::new</a>
116
+ &mdash;
117
+ <span class="container">Sycsvpro::Filter</span>
118
+
119
+ <li class="method">
120
+ <a href="Sycsvpro/Aggregator.html#method-c-new">::new</a>
121
+ &mdash;
122
+ <span class="container">Sycsvpro::Aggregator</span>
123
+
124
+ <li class="method">
125
+ <a href="Sycsvpro/ScriptList.html#method-c-new">::new</a>
126
+ &mdash;
127
+ <span class="container">Sycsvpro::ScriptList</span>
128
+
129
+ <li class="method">
130
+ <a href="Sycsvpro/ScriptCreator.html#method-c-new">::new</a>
131
+ &mdash;
132
+ <span class="container">Sycsvpro::ScriptCreator</span>
133
+
134
+ <li class="method">
135
+ <a href="Sycsvpro/Profiler.html#method-c-new">::new</a>
136
+ &mdash;
137
+ <span class="container">Sycsvpro::Profiler</span>
138
+
111
139
  <li class="method">
112
140
  <a href="Sycsvpro/Allocator.html#method-c-new">::new</a>
113
141
  &mdash;
@@ -133,30 +161,20 @@
133
161
  &mdash;
134
162
  <span class="container">Sycsvpro::Calculator</span>
135
163
 
136
- <li class="method">
137
- <a href="Sycsvpro/Profiler.html#method-c-new">::new</a>
138
- &mdash;
139
- <span class="container">Sycsvpro::Profiler</span>
140
-
141
164
  <li class="method">
142
165
  <a href="Sycsvpro/Header.html#method-c-new">::new</a>
143
166
  &mdash;
144
167
  <span class="container">Sycsvpro::Header</span>
145
168
 
146
169
  <li class="method">
147
- <a href="Sycsvpro/Collector.html#method-c-new">::new</a>
148
- &mdash;
149
- <span class="container">Sycsvpro::Collector</span>
150
-
151
- <li class="method">
152
- <a href="Sycsvpro/Filter.html#method-c-new">::new</a>
170
+ <a href="Sycsvpro/Sorter.html#method-c-new">::new</a>
153
171
  &mdash;
154
- <span class="container">Sycsvpro::Filter</span>
172
+ <span class="container">Sycsvpro::Sorter</span>
155
173
 
156
174
  <li class="method">
157
- <a href="Sycsvpro/Sorter.html#method-c-new">::new</a>
175
+ <a href="Sycsvpro/Collector.html#method-c-new">::new</a>
158
176
  &mdash;
159
- <span class="container">Sycsvpro::Sorter</span>
177
+ <span class="container">Sycsvpro::Collector</span>
160
178
 
161
179
  <li class="method">
162
180
  <a href="Sycsvpro/Extractor.html#method-c-new">::new</a>
@@ -169,12 +187,12 @@
169
187
  <span class="container">Sycsvpro::Counter</span>
170
188
 
171
189
  <li class="method">
172
- <a href="Sycsvpro/ScriptCreator.html#method-c-new">::new</a>
190
+ <a href="Sycsvpro/Sorter.html#method-i-execute">#execute</a>
173
191
  &mdash;
174
- <span class="container">Sycsvpro::ScriptCreator</span>
192
+ <span class="container">Sycsvpro::Sorter</span>
175
193
 
176
194
  <li class="method">
177
- <a href="Sycsvpro/ScriptList.html#method-c-new">::new</a>
195
+ <a href="Sycsvpro/ScriptList.html#method-i-execute">#execute</a>
178
196
  &mdash;
179
197
  <span class="container">Sycsvpro::ScriptList</span>
180
198
 
@@ -184,14 +202,14 @@
184
202
  <span class="container">Sycsvpro::Counter</span>
185
203
 
186
204
  <li class="method">
187
- <a href="Sycsvpro/ScriptList.html#method-i-execute">#execute</a>
205
+ <a href="Sycsvpro/Aggregator.html#method-i-execute">#execute</a>
188
206
  &mdash;
189
- <span class="container">Sycsvpro::ScriptList</span>
207
+ <span class="container">Sycsvpro::Aggregator</span>
190
208
 
191
209
  <li class="method">
192
- <a href="Sycsvpro/Extractor.html#method-i-execute">#execute</a>
210
+ <a href="Sycsvpro/Profiler.html#method-i-execute">#execute</a>
193
211
  &mdash;
194
- <span class="container">Sycsvpro::Extractor</span>
212
+ <span class="container">Sycsvpro::Profiler</span>
195
213
 
196
214
  <li class="method">
197
215
  <a href="Sycsvpro/Collector.html#method-i-execute">#execute</a>
@@ -199,24 +217,24 @@
199
217
  <span class="container">Sycsvpro::Collector</span>
200
218
 
201
219
  <li class="method">
202
- <a href="Sycsvpro/Allocator.html#method-i-execute">#execute</a>
220
+ <a href="Sycsvpro/Extractor.html#method-i-execute">#execute</a>
203
221
  &mdash;
204
- <span class="container">Sycsvpro::Allocator</span>
222
+ <span class="container">Sycsvpro::Extractor</span>
205
223
 
206
224
  <li class="method">
207
- <a href="Sycsvpro/Profiler.html#method-i-execute">#execute</a>
225
+ <a href="Sycsvpro/Allocator.html#method-i-execute">#execute</a>
208
226
  &mdash;
209
- <span class="container">Sycsvpro::Profiler</span>
227
+ <span class="container">Sycsvpro::Allocator</span>
210
228
 
211
229
  <li class="method">
212
- <a href="Sycsvpro/Sorter.html#method-i-execute">#execute</a>
230
+ <a href="Sycsvpro/Inserter.html#method-i-execute">#execute</a>
213
231
  &mdash;
214
- <span class="container">Sycsvpro::Sorter</span>
232
+ <span class="container">Sycsvpro::Inserter</span>
215
233
 
216
234
  <li class="method">
217
- <a href="Sycsvpro/Inserter.html#method-i-execute">#execute</a>
235
+ <a href="Sycsvpro/Mapper.html#method-i-execute">#execute</a>
218
236
  &mdash;
219
- <span class="container">Sycsvpro::Inserter</span>
237
+ <span class="container">Sycsvpro::Mapper</span>
220
238
 
221
239
  <li class="method">
222
240
  <a href="Sycsvpro/Calculator.html#method-i-execute">#execute</a>
@@ -224,12 +242,12 @@
224
242
  <span class="container">Sycsvpro::Calculator</span>
225
243
 
226
244
  <li class="method">
227
- <a href="Sycsvpro/Mapper.html#method-i-execute">#execute</a>
245
+ <a href="Sycsvpro/Filter.html#method-i-has_filter-3F">#has_filter?</a>
228
246
  &mdash;
229
- <span class="container">Sycsvpro::Mapper</span>
247
+ <span class="container">Sycsvpro::Filter</span>
230
248
 
231
249
  <li class="method">
232
- <a href="Sycsvpro/Filter.html#method-i-has_filter-3F">#has_filter?</a>
250
+ <a href="Sycsvpro/Filter.html#method-i-method_missing">#method_missing</a>
233
251
  &mdash;
234
252
  <span class="container">Sycsvpro::Filter</span>
235
253
 
@@ -239,14 +257,14 @@
239
257
  <span class="container">Sycsvpro::Calculator</span>
240
258
 
241
259
  <li class="method">
242
- <a href="Sycsvpro/Filter.html#method-i-method_missing">#method_missing</a>
260
+ <a href="Sycsvpro/Filter.html#method-i-pivot_each_column">#pivot_each_column</a>
243
261
  &mdash;
244
262
  <span class="container">Sycsvpro::Filter</span>
245
263
 
246
264
  <li class="method">
247
- <a href="Sycsvpro/Filter.html#method-i-pivot_each_column">#pivot_each_column</a>
265
+ <a href="Sycsvpro/ColumnFilter.html#method-i-process">#process</a>
248
266
  &mdash;
249
- <span class="container">Sycsvpro::Filter</span>
267
+ <span class="container">Sycsvpro::ColumnFilter</span>
250
268
 
251
269
  <li class="method">
252
270
  <a href="Sycsvpro/Header.html#method-i-process">#process</a>
@@ -269,12 +287,12 @@
269
287
  <span class="container">Sycsvpro::ColumnTypeFilter</span>
270
288
 
271
289
  <li class="method">
272
- <a href="Sycsvpro/ColumnFilter.html#method-i-process">#process</a>
290
+ <a href="Sycsvpro/Aggregator.html#method-i-process_aggregation">#process_aggregation</a>
273
291
  &mdash;
274
- <span class="container">Sycsvpro::ColumnFilter</span>
292
+ <span class="container">Sycsvpro::Aggregator</span>
275
293
 
276
294
  <li class="method">
277
- <a href="Sycsvpro/Counter.html#method-i-process_file">#process_file</a>
295
+ <a href="Sycsvpro/Counter.html#method-i-process_count">#process_count</a>
278
296
  &mdash;
279
297
  <span class="container">Sycsvpro::Counter</span>
280
298
 
@@ -288,6 +306,11 @@
288
306
  &mdash;
289
307
  <span class="container">Dsl</span>
290
308
 
309
+ <li class="method">
310
+ <a href="Object.html#method-i-set_max_row">#set_max_row</a>
311
+ &mdash;
312
+ <span class="container">Object</span>
313
+
291
314
  <li class="method">
292
315
  <a href="Dsl.html#method-i-str2utf8">#str2utf8</a>
293
316
  &mdash;
@@ -298,6 +321,11 @@
298
321
  &mdash;
299
322
  <span class="container">Dsl</span>
300
323
 
324
+ <li class="method">
325
+ <a href="Sycsvpro/Aggregator.html#method-i-write_result">#write_result</a>
326
+ &mdash;
327
+ <span class="container">Sycsvpro::Aggregator</span>
328
+
301
329
  <li class="method">
302
330
  <a href="Sycsvpro/Counter.html#method-i-write_result">#write_result</a>
303
331
  &mdash;