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