qiflib 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,361 +1,342 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
1
+ <!DOCTYPE html>
2
+
3
+ <html>
5
4
  <head>
6
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>class Qiflib::Category - qiflib</title>
8
+
9
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
7
10
 
8
- <title>Class: Qiflib::Category</title>
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../";
13
+ </script>
9
14
 
10
- <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
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>
11
21
 
12
- <script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
13
- <script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
14
- <script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
15
- <script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
16
22
 
17
- </head>
18
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>
19
32
 
20
- <div id="metadata">
21
- <div id="home-metadata">
22
- <div id="home-section" class="section">
23
- <h3 class="section-header">
24
- <a href="../index.html">Home</a>
25
- <a href="../index.html#classes">Classes</a>
26
- <a href="../index.html#methods">Methods</a>
27
- </h3>
28
- </div>
29
- </div>
30
33
 
31
- <div id="file-metadata">
32
- <div id="file-list-section" class="section">
33
- <h3 class="section-header">In Files</h3>
34
- <div class="section-body">
35
- <ul>
36
-
37
- <li><a href="../lib/qiflib_category_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
- class="thickbox" title="lib/qiflib_category.rb">lib/qiflib_category.rb</a></li>
39
-
40
- </ul>
41
- </div>
42
- </div>
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>
43
41
 
44
-
45
- </div>
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
46
44
 
47
- <div id="class-metadata">
48
-
49
- <!-- Parent Class -->
50
- <div id="parent-class-section" class="section">
51
- <h3 class="section-header">Parent</h3>
52
-
53
- <p class="link">Object</p>
54
-
55
- </div>
56
-
57
45
 
58
-
46
+
59
47
 
60
-
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/qiflib_category.rb
53
+ </ul>
54
+ </nav>
61
55
 
62
-
63
- <!-- Method Quickref -->
64
- <div id="method-list-section" class="section">
65
- <h3 class="section-header">Methods</h3>
66
- <ul class="link-list">
67
-
68
- <li><a href="#method-c-csv_header">::csv_header</a></li>
69
-
70
- <li><a href="#method-c-new">::new</a></li>
71
-
72
- <li><a href="#method-i-as_array">#as_array</a></li>
73
-
74
- <li><a href="#method-i-to_csv">#to_csv</a></li>
75
-
76
- </ul>
77
- </div>
78
-
56
+
57
+ </div>
79
58
 
80
-
81
- </div>
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>
82
67
 
83
- <div id="project-metadata">
84
-
85
-
86
- <div id="fileindex-section" class="section project-section">
87
- <h3 class="section-header">Files</h3>
88
- <ul>
89
-
90
- <li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
91
-
92
- </ul>
93
- </div>
94
-
68
+
69
+
70
+ <!-- Method Quickref -->
71
+ <nav id="method-list-section" class="section">
72
+ <h3 class="section-header">Methods</h3>
95
73
 
96
- <div id="classindex-section" class="section project-section">
97
- <h3 class="section-header">Class/Module Index
98
- <span class="search-toggle"><img src="../images/find.png"
99
- height="16" width="16" alt="[+]"
100
- title="show/hide quicksearch" /></span></h3>
101
- <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
102
- <fieldset>
103
- <legend>Quicksearch</legend>
104
- <input type="text" name="quicksearch" value=""
105
- class="quicksearch-field" />
106
- </fieldset>
107
- </form>
108
-
109
- <ul class="link-list">
110
-
111
- <li><a href="../Qiflib.html">Qiflib</a></li>
112
-
113
- <li><a href="../Qiflib/Category.html">Qiflib::Category</a></li>
114
-
115
- <li><a href="../Qiflib/Date.html">Qiflib::Date</a></li>
116
-
117
- <li><a href="../Qiflib/Money.html">Qiflib::Money</a></li>
118
-
119
- <li><a href="../Qiflib/Transaction.html">Qiflib::Transaction</a></li>
120
-
121
- <li><a href="../Qiflib/Util.html">Qiflib::Util</a></li>
122
-
123
- </ul>
124
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
125
- </div>
74
+ <ul class="link-list">
75
+
76
+ <li ><a href="#method-c-csv_header">::csv_header</a>
77
+
78
+ <li ><a href="#method-c-new">::new</a>
79
+
80
+ <li ><a href="#method-i-as_array">#as_array</a>
81
+
82
+ <li ><a href="#method-i-to_csv">#to_csv</a>
83
+
84
+ </ul>
85
+ </nav>
126
86
 
127
-
128
- </div>
129
87
  </div>
130
88
 
131
- <div id="documentation">
132
- <h1 class="class">Qiflib::Category</h1>
89
+ <div id="project-metadata">
90
+ <nav id="fileindex-section" class="section project-section">
91
+ <h3 class="section-header">Pages</h3>
133
92
 
134
- <div id="description" class="description">
135
-
93
+ <ul>
94
+
95
+ <li class="file"><a href="../README_rdoc.html">README</a>
96
+
97
+ </ul>
98
+ </nav>
99
+
100
+ <nav id="classindex-section" class="section project-section">
101
+ <h3 class="section-header">Class and Module Index</h3>
102
+
103
+ <ul class="link-list">
104
+
105
+ <li><a href="../Qiflib.html">Qiflib</a>
106
+
107
+ <li><a href="../Qiflib/Category.html">Qiflib::Category</a>
108
+
109
+ <li><a href="../Qiflib/Date.html">Qiflib::Date</a>
110
+
111
+ <li><a href="../Qiflib/Money.html">Qiflib::Money</a>
112
+
113
+ <li><a href="../Qiflib/Transaction.html">Qiflib::Transaction</a>
114
+
115
+ <li><a href="../Qiflib/Util.html">Qiflib::Util</a>
116
+
117
+ </ul>
118
+ </nav>
119
+
120
+ </div>
121
+ </nav>
122
+
123
+ <div id="documentation">
124
+ <h1 class="class">class Qiflib::Category</h1>
125
+
126
+ <div id="description" class="description">
127
+
136
128
  <p>Instances of this class represent a catgory parsed within the !Type:Cat
137
129
  section of a qif file. The qiflib gem only captures the category name, and
138
130
  not the other fields.</p>
139
131
 
140
- </div><!-- description -->
132
+ </div><!-- description -->
141
133
 
134
+
135
+
136
+
137
+ <section id="5Buntitled-5D" class="documentation-section">
142
138
 
139
+
143
140
 
141
+
144
142
 
145
- <div id="5Buntitled-5D" class="documentation-section">
146
-
147
143
 
148
-
144
+
145
+ <!-- Attributes -->
146
+ <section id="attribute-method-details" class="method-section section">
147
+ <h3 class="section-header">Attributes</h3>
149
148
 
150
149
 
150
+ <div id="attribute-i-id" class="method-detail">
151
+ <div class="method-heading attribute-method-heading">
152
+ <span class="method-name">id</span><span
153
+ class="attribute-access-type">[RW]</span>
154
+ </div>
151
155
 
156
+ <div class="method-description">
157
+
158
+
159
+
160
+ </div>
161
+ </div>
152
162
 
153
- <!-- Attributes -->
154
- <div id="attribute-method-details" class="method-section section">
155
- <h3 class="section-header">Attributes</h3>
163
+ <div id="attribute-i-name" class="method-detail">
164
+ <div class="method-heading attribute-method-heading">
165
+ <span class="method-name">name</span><span
166
+ class="attribute-access-type">[RW]</span>
167
+ </div>
156
168
 
169
+ <div class="method-description">
157
170
 
158
- <div id="id-attribute-method" class="method-detail">
159
- <a name="id"></a>
160
-
161
- <a name="id="></a>
162
-
163
- <div class="method-heading attribute-method-heading">
164
- <span class="method-name">id</span><span
165
- class="attribute-access-type">[RW]</span>
166
- </div>
171
+
172
+
173
+ </div>
174
+ </div>
175
+
176
+ </section><!-- attribute-method-details -->
177
+
167
178
 
168
- <div class="method-description">
169
-
179
+ <!-- Methods -->
180
+
181
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
182
+ <h3 class="section-header">Public Class Methods</h3>
183
+
184
+
185
+ <div id="method-c-csv_header" class="method-detail ">
186
+
187
+ <div class="method-heading">
188
+ <span class="method-name">csv_header</span><span
189
+ class="method-args">()</span>
170
190
 
191
+ <span class="method-click-advice">click to toggle source</span>
171
192
 
172
- </div>
173
193
  </div>
174
194
 
175
- <div id="name-attribute-method" class="method-detail">
176
- <a name="name"></a>
177
-
178
- <a name="name="></a>
179
-
180
- <div class="method-heading attribute-method-heading">
181
- <span class="method-name">name</span><span
182
- class="attribute-access-type">[RW]</span>
183
- </div>
184
195
 
185
- <div class="method-description">
196
+ <div class="method-description">
186
197
 
198
+ <p>Return the CSV header row.</p>
187
199
 
188
200
 
189
- </div>
190
- </div>
191
-
192
- </div><!-- attribute-method-details -->
193
-
194
201
 
195
- <!-- Methods -->
196
-
197
- <div id="public-class-method-details" class="method-section section">
198
- <h3 class="section-header">Public Class Methods</h3>
199
-
200
-
201
- <div id="csv_header-method" class="method-detail ">
202
- <a name="method-c-csv_header"></a>
203
-
204
-
205
- <div class="method-heading">
206
- <span class="method-name">csv_header</span><span
207
- class="method-args">()</span>
208
- <span class="method-click-advice">click to toggle source</span>
209
- </div>
210
202
 
211
-
212
- <div class="method-description">
213
-
214
- <p>Return the CSV header row.</p>
215
-
216
-
217
-
218
- <div class="method-source-code" id="csv_header-source">
219
- <pre>
220
- <span class="ruby-comment"># File lib/qiflib_category.rb, line 15</span>
203
+ <div class="method-source-code" id="csv_header-source">
204
+ <pre><span class="ruby-comment"># File lib/qiflib_category.rb, line 15</span>
221
205
  <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">csv_header</span>
222
206
  <span class="ruby-constant">CSV</span>.<span class="ruby-identifier">generate</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">csv</span> <span class="ruby-operator">|</span>
223
207
  <span class="ruby-identifier">csv</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">Qiflib</span><span class="ruby-operator">::</span><span class="ruby-identifier">csv_category_field_names</span>
224
208
  <span class="ruby-keyword">end</span>
225
209
  <span class="ruby-keyword">end</span></pre>
226
- </div><!-- csv_header-source -->
227
-
228
- </div>
229
-
210
+ </div><!-- csv_header-source -->
230
211
 
212
+ </div>
231
213
 
232
-
233
- </div><!-- csv_header-method -->
214
+
234
215
 
235
-
236
- <div id="new-method" class="method-detail ">
237
- <a name="method-c-new"></a>
216
+
217
+ </div><!-- csv_header-method -->
238
218
 
219
+
220
+ <div id="method-c-new" class="method-detail ">
221
+
222
+ <div class="method-heading">
223
+ <span class="method-name">new</span><span
224
+ class="method-args">(n=0)</span>
239
225
 
240
- <div class="method-heading">
241
- <span class="method-name">new</span><span
242
- class="method-args">(n=0)</span>
243
- <span class="method-click-advice">click to toggle source</span>
244
- </div>
226
+ <span class="method-click-advice">click to toggle source</span>
245
227
 
228
+ </div>
229
+
246
230
 
247
- <div class="method-description">
248
-
249
- <p>Constructor. The given n arg is an integer id value; defaults to 0.</p>
250
-
231
+ <div class="method-description">
232
+
233
+ <p>Constructor. The given n arg is an integer id value; defaults to 0.</p>
234
+
235
+
251
236
 
252
-
253
- <div class="method-source-code" id="new-source">
254
- <pre>
255
- <span class="ruby-comment"># File lib/qiflib_category.rb, line 23</span>
237
+
238
+ <div class="method-source-code" id="new-source">
239
+ <pre><span class="ruby-comment"># File lib/qiflib_category.rb, line 23</span>
256
240
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">0</span>)
257
241
  <span class="ruby-ivar">@id</span>, <span class="ruby-ivar">@name</span> = <span class="ruby-value">0</span>, <span class="ruby-node">&quot;#{n}&quot;</span>.<span class="ruby-identifier">strip</span>.<span class="ruby-identifier">downcase</span>
258
242
  <span class="ruby-keyword">end</span></pre>
259
- </div><!-- new-source -->
260
-
261
- </div>
262
-
243
+ </div><!-- new-source -->
263
244
 
245
+ </div>
264
246
 
265
-
266
- </div><!-- new-method -->
247
+
267
248
 
268
-
269
- </div><!-- public-class-method-details -->
270
-
271
- <div id="public-instance-method-details" class="method-section section">
272
- <h3 class="section-header">Public Instance Methods</h3>
249
+
250
+ </div><!-- new-method -->
273
251
 
274
-
275
- <div id="as_array-method" class="method-detail ">
276
- <a name="method-i-as_array"></a>
252
+
253
+ </section><!-- public-class-method-details -->
254
+
255
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
256
+ <h3 class="section-header">Public Instance Methods</h3>
277
257
 
258
+
259
+ <div id="method-i-as_array" class="method-detail ">
260
+
261
+ <div class="method-heading">
262
+ <span class="method-name">as_array</span><span
263
+ class="method-args">(idx=0)</span>
278
264
 
279
- <div class="method-heading">
280
- <span class="method-name">as_array</span><span
281
- class="method-args">(idx=0)</span>
282
- <span class="method-click-advice">click to toggle source</span>
283
- </div>
265
+ <span class="method-click-advice">click to toggle source</span>
284
266
 
267
+ </div>
268
+
285
269
 
286
- <div class="method-description">
287
-
288
- <p>Return this instance an 2-element array; id and name.</p>
289
-
270
+ <div class="method-description">
271
+
272
+ <p>Return this instance an 2-element array; id and name.</p>
273
+
274
+
290
275
 
291
-
292
- <div class="method-source-code" id="as_array-source">
293
- <pre>
294
- <span class="ruby-comment"># File lib/qiflib_category.rb, line 37</span>
276
+
277
+ <div class="method-source-code" id="as_array-source">
278
+ <pre><span class="ruby-comment"># File lib/qiflib_category.rb, line 37</span>
295
279
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">as_array</span>(<span class="ruby-identifier">idx</span>=<span class="ruby-value">0</span>)
296
280
  <span class="ruby-identifier">array</span> = []
297
281
  <span class="ruby-identifier">array</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">idx</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>
298
282
  <span class="ruby-identifier">array</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">name</span>
299
283
  <span class="ruby-identifier">array</span>
300
284
  <span class="ruby-keyword">end</span></pre>
301
- </div><!-- as_array-source -->
302
-
303
- </div>
304
-
285
+ </div><!-- as_array-source -->
305
286
 
287
+ </div>
306
288
 
307
-
308
- </div><!-- as_array-method -->
289
+
309
290
 
310
-
311
- <div id="to_csv-method" class="method-detail ">
312
- <a name="method-i-to_csv"></a>
291
+
292
+ </div><!-- as_array-method -->
313
293
 
294
+
295
+ <div id="method-i-to_csv" class="method-detail ">
296
+
297
+ <div class="method-heading">
298
+ <span class="method-name">to_csv</span><span
299
+ class="method-args">(idx=0)</span>
314
300
 
315
- <div class="method-heading">
316
- <span class="method-name">to_csv</span><span
317
- class="method-args">(idx=0)</span>
318
- <span class="method-click-advice">click to toggle source</span>
319
- </div>
301
+ <span class="method-click-advice">click to toggle source</span>
320
302
 
303
+ </div>
304
+
321
305
 
322
- <div class="method-description">
323
-
324
- <p>Return this instance a CSV row.</p>
325
-
306
+ <div class="method-description">
307
+
308
+ <p>Return this instance a CSV row.</p>
309
+
310
+
326
311
 
327
-
328
- <div class="method-source-code" id="to_csv-source">
329
- <pre>
330
- <span class="ruby-comment"># File lib/qiflib_category.rb, line 29</span>
312
+
313
+ <div class="method-source-code" id="to_csv-source">
314
+ <pre><span class="ruby-comment"># File lib/qiflib_category.rb, line 29</span>
331
315
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_csv</span>(<span class="ruby-identifier">idx</span>=<span class="ruby-value">0</span>)
332
316
  <span class="ruby-constant">CSV</span>.<span class="ruby-identifier">generate</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">csv</span> <span class="ruby-operator">|</span>
333
317
  <span class="ruby-identifier">csv</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">as_array</span>(<span class="ruby-identifier">idx</span>)
334
318
  <span class="ruby-keyword">end</span>
335
319
  <span class="ruby-keyword">end</span></pre>
336
- </div><!-- to_csv-source -->
337
-
338
- </div>
339
-
320
+ </div><!-- to_csv-source -->
340
321
 
322
+ </div>
341
323
 
342
-
343
- </div><!-- to_csv-method -->
324
+
325
+
326
+
327
+ </div><!-- to_csv-method -->
344
328
 
345
-
346
- </div><!-- public-instance-method-details -->
347
329
 
348
- </div><!-- 5Buntitled-5D -->
330
+ </section><!-- public-instance-method-details -->
349
331
 
332
+ </section><!-- 5Buntitled-5D -->
350
333
 
351
- </div><!-- documentation -->
334
+ </div><!-- documentation -->
352
335
 
353
- <div id="validator-badges">
354
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
355
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
356
- Rdoc Generator</a> 2</small>.</p>
357
- </div>
358
336
 
359
- </body>
360
- </html>
337
+ <footer id="validator-badges">
338
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
339
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
340
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
341
+ </footer>
361
342