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/Date.html
CHANGED
|
@@ -1,387 +1,381 @@
|
|
|
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::Date</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
|
-
|
|
142
|
-
|
|
143
|
-
|
|
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
|
-
|
|
221
|
-
|
|
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
|
-
|
|
258
|
-
|
|
259
|
-
|
|
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
|
-
|
|
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_date_rb.html?TB_iframe=true&height=550&width=785"
|
|
38
|
+
class="thickbox" title="lib/qiflib_date.rb">lib/qiflib_date.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-new">::new</a></li>
|
|
69
|
+
|
|
70
|
+
<li><a href="#method-i-to_s">#to_s</a></li>
|
|
71
|
+
|
|
72
|
+
</ul>
|
|
73
|
+
</div>
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
</div>
|
|
78
|
+
|
|
79
|
+
<div id="project-metadata">
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
<div id="fileindex-section" class="section project-section">
|
|
83
|
+
<h3 class="section-header">Files</h3>
|
|
84
|
+
<ul>
|
|
85
|
+
|
|
86
|
+
<li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
|
|
87
|
+
|
|
88
|
+
</ul>
|
|
89
|
+
</div>
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
<div id="classindex-section" class="section project-section">
|
|
93
|
+
<h3 class="section-header">Class/Module Index
|
|
94
|
+
<span class="search-toggle"><img src="../images/find.png"
|
|
95
|
+
height="16" width="16" alt="[+]"
|
|
96
|
+
title="show/hide quicksearch" /></span></h3>
|
|
97
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
|
98
|
+
<fieldset>
|
|
99
|
+
<legend>Quicksearch</legend>
|
|
100
|
+
<input type="text" name="quicksearch" value=""
|
|
101
|
+
class="quicksearch-field" />
|
|
102
|
+
</fieldset>
|
|
103
|
+
</form>
|
|
104
|
+
|
|
105
|
+
<ul class="link-list">
|
|
106
|
+
|
|
107
|
+
<li><a href="../Qiflib.html">Qiflib</a></li>
|
|
108
|
+
|
|
109
|
+
<li><a href="../Qiflib/Category.html">Qiflib::Category</a></li>
|
|
110
|
+
|
|
111
|
+
<li><a href="../Qiflib/Date.html">Qiflib::Date</a></li>
|
|
112
|
+
|
|
113
|
+
<li><a href="../Qiflib/Money.html">Qiflib::Money</a></li>
|
|
114
|
+
|
|
115
|
+
<li><a href="../Qiflib/Transaction.html">Qiflib::Transaction</a></li>
|
|
116
|
+
|
|
117
|
+
<li><a href="../Qiflib/Util.html">Qiflib::Util</a></li>
|
|
118
|
+
|
|
119
|
+
</ul>
|
|
120
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
|
121
|
+
</div>
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
|
|
127
|
+
<div id="documentation">
|
|
128
|
+
<h1 class="class">Qiflib::Date</h1>
|
|
129
|
+
|
|
130
|
+
<div id="description" class="description">
|
|
131
|
+
|
|
132
|
+
<p>Instances of this class represent a date from within a qif file, such as
|
|
133
|
+
‘D5/24/94’.</p>
|
|
134
|
+
|
|
135
|
+
</div><!-- description -->
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
<!-- Attributes -->
|
|
149
|
+
<div id="attribute-method-details" class="method-section section">
|
|
150
|
+
<h3 class="section-header">Attributes</h3>
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
<div id="ccyymmdd-attribute-method" class="method-detail">
|
|
154
|
+
<a name="ccyymmdd"></a>
|
|
155
|
+
|
|
156
|
+
<a name="ccyymmdd="></a>
|
|
157
|
+
|
|
158
|
+
<div class="method-heading attribute-method-heading">
|
|
159
|
+
<span class="method-name">ccyymmdd</span><span
|
|
160
|
+
class="attribute-access-type">[RW]</span>
|
|
161
|
+
</div>
|
|
162
|
+
|
|
163
|
+
<div class="method-description">
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
</div>
|
|
168
|
+
</div>
|
|
169
|
+
|
|
170
|
+
<div id="dd-attribute-method" class="method-detail">
|
|
171
|
+
<a name="dd"></a>
|
|
172
|
+
|
|
173
|
+
<a name="dd="></a>
|
|
174
|
+
|
|
175
|
+
<div class="method-heading attribute-method-heading">
|
|
176
|
+
<span class="method-name">dd</span><span
|
|
177
|
+
class="attribute-access-type">[RW]</span>
|
|
178
|
+
</div>
|
|
179
|
+
|
|
180
|
+
<div class="method-description">
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
</div>
|
|
185
|
+
</div>
|
|
186
|
+
|
|
187
|
+
<div id="mm-attribute-method" class="method-detail">
|
|
188
|
+
<a name="mm"></a>
|
|
189
|
+
|
|
190
|
+
<a name="mm="></a>
|
|
191
|
+
|
|
192
|
+
<div class="method-heading attribute-method-heading">
|
|
193
|
+
<span class="method-name">mm</span><span
|
|
194
|
+
class="attribute-access-type">[RW]</span>
|
|
195
|
+
</div>
|
|
196
|
+
|
|
197
|
+
<div class="method-description">
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
</div>
|
|
202
|
+
</div>
|
|
203
|
+
|
|
204
|
+
<div id="string_value-attribute-method" class="method-detail">
|
|
205
|
+
<a name="string_value"></a>
|
|
206
|
+
|
|
207
|
+
<a name="string_value="></a>
|
|
208
|
+
|
|
209
|
+
<div class="method-heading attribute-method-heading">
|
|
210
|
+
<span class="method-name">string_value</span><span
|
|
211
|
+
class="attribute-access-type">[RW]</span>
|
|
212
|
+
</div>
|
|
213
|
+
|
|
214
|
+
<div class="method-description">
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
</div>
|
|
219
|
+
</div>
|
|
220
|
+
|
|
221
|
+
<div id="year-attribute-method" class="method-detail">
|
|
222
|
+
<a name="year"></a>
|
|
223
|
+
|
|
224
|
+
<a name="year="></a>
|
|
225
|
+
|
|
226
|
+
<div class="method-heading attribute-method-heading">
|
|
227
|
+
<span class="method-name">year</span><span
|
|
228
|
+
class="attribute-access-type">[RW]</span>
|
|
229
|
+
</div>
|
|
230
|
+
|
|
231
|
+
<div class="method-description">
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
</div>
|
|
236
|
+
</div>
|
|
237
|
+
|
|
238
|
+
<div id="year_mm-attribute-method" class="method-detail">
|
|
239
|
+
<a name="year_mm"></a>
|
|
240
|
+
|
|
241
|
+
<a name="year_mm="></a>
|
|
242
|
+
|
|
243
|
+
<div class="method-heading attribute-method-heading">
|
|
244
|
+
<span class="method-name">year_mm</span><span
|
|
245
|
+
class="attribute-access-type">[RW]</span>
|
|
246
|
+
</div>
|
|
247
|
+
|
|
248
|
+
<div class="method-description">
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
</div>
|
|
253
|
+
</div>
|
|
254
|
+
|
|
255
|
+
<div id="yy-attribute-method" class="method-detail">
|
|
256
|
+
<a name="yy"></a>
|
|
257
|
+
|
|
258
|
+
<a name="yy="></a>
|
|
259
|
+
|
|
260
|
+
<div class="method-heading attribute-method-heading">
|
|
261
|
+
<span class="method-name">yy</span><span
|
|
262
|
+
class="attribute-access-type">[RW]</span>
|
|
263
|
+
</div>
|
|
264
|
+
|
|
265
|
+
<div class="method-description">
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
</div>
|
|
270
|
+
</div>
|
|
271
|
+
|
|
272
|
+
</div><!-- attribute-method-details -->
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
<!-- Methods -->
|
|
276
|
+
|
|
277
|
+
<div id="public-class-method-details" class="method-section section">
|
|
278
|
+
<h3 class="section-header">Public Class Methods</h3>
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
<div id="new-method" class="method-detail ">
|
|
282
|
+
<a name="method-c-new"></a>
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
<div class="method-heading">
|
|
286
|
+
<span class="method-name">new</span><span
|
|
287
|
+
class="method-args">(string_value='')</span>
|
|
288
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
289
|
+
</div>
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
<div class="method-description">
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
<div class="method-source-code" id="new-source">
|
|
299
299
|
<pre>
|
|
300
|
-
|
|
301
|
-
|
|
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
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
id="to-s-source">
|
|
300
|
+
<span class="ruby-comment"># File lib/qiflib_date.rb, line 11</span>
|
|
301
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">string_value</span>=<span class="ruby-string">''</span>)
|
|
302
|
+
<span class="ruby-ivar">@cc</span>, <span class="ruby-ivar">@yy</span>, <span class="ruby-ivar">@mm</span>, <span class="ruby-ivar">@dd</span> = <span class="ruby-string">'00'</span>, <span class="ruby-string">'00'</span>, <span class="ruby-string">'00'</span>, <span class="ruby-string">'00'</span>
|
|
303
|
+
<span class="ruby-ivar">@string_value</span> = <span class="ruby-node">"#{string_value}"</span>.<span class="ruby-identifier">tr</span>(<span class="ruby-string">'D'</span>,<span class="ruby-string">''</span>)
|
|
304
|
+
<span class="ruby-identifier">tokens</span> = <span class="ruby-ivar">@string_value</span>.<span class="ruby-identifier">split</span>(<span class="ruby-string">'/'</span>)
|
|
305
|
+
<span class="ruby-keyword">if</span> (<span class="ruby-identifier">tokens</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">tokens</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">></span> <span class="ruby-value">2</span>)
|
|
306
|
+
<span class="ruby-identifier">m</span> = <span class="ruby-identifier">tokens</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">to_i</span>
|
|
307
|
+
<span class="ruby-identifier">d</span> = <span class="ruby-identifier">tokens</span>[<span class="ruby-value">1</span>].<span class="ruby-identifier">to_i</span>
|
|
308
|
+
<span class="ruby-identifier">y</span> = <span class="ruby-identifier">tokens</span>[<span class="ruby-value">2</span>].<span class="ruby-identifier">to_i</span>
|
|
309
|
+
<span class="ruby-ivar">@yy</span> = <span class="ruby-identifier">tokens</span>[<span class="ruby-value">2</span>]
|
|
310
|
+
<span class="ruby-identifier">y</span> <span class="ruby-operator"><</span> <span class="ruby-value">50</span> <span class="ruby-operator">?</span> <span class="ruby-ivar">@cc</span> = <span class="ruby-string">"20"</span> <span class="ruby-operator">:</span> <span class="ruby-ivar">@cc</span> = <span class="ruby-string">"19"</span>
|
|
311
|
+
<span class="ruby-identifier">m</span> <span class="ruby-operator"><</span> <span class="ruby-value">10</span> <span class="ruby-operator">?</span> <span class="ruby-ivar">@mm</span> = <span class="ruby-node">"0#{m}"</span> <span class="ruby-operator">:</span> <span class="ruby-ivar">@mm</span> = <span class="ruby-node">"#{m}"</span>
|
|
312
|
+
<span class="ruby-identifier">d</span> <span class="ruby-operator"><</span> <span class="ruby-value">10</span> <span class="ruby-operator">?</span> <span class="ruby-ivar">@dd</span> = <span class="ruby-node">"0#{d}"</span> <span class="ruby-operator">:</span> <span class="ruby-ivar">@dd</span> = <span class="ruby-node">"#{d}"</span>
|
|
313
|
+
<span class="ruby-keyword">end</span>
|
|
314
|
+
<span class="ruby-ivar">@ccyymmdd</span> = <span class="ruby-node">"#{@cc}#{@yy}-#{@mm}-#{@dd}"</span>
|
|
315
|
+
<span class="ruby-ivar">@year</span> = <span class="ruby-node">"#{@cc}#{@yy}"</span>
|
|
316
|
+
<span class="ruby-ivar">@year_mm</span> = <span class="ruby-node">"#{@cc}#{@yy}-#{@mm}"</span>
|
|
317
|
+
<span class="ruby-keyword">end</span></pre>
|
|
318
|
+
</div><!-- new-source -->
|
|
319
|
+
|
|
320
|
+
</div>
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
</div><!-- new-method -->
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
</div><!-- public-class-method-details -->
|
|
329
|
+
|
|
330
|
+
<div id="public-instance-method-details" class="method-section section">
|
|
331
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
<div id="to_s-method" class="method-detail ">
|
|
335
|
+
<a name="method-i-to_s"></a>
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
<div class="method-heading">
|
|
339
|
+
<span class="method-name">to_s</span><span
|
|
340
|
+
class="method-args">()</span>
|
|
341
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
342
|
+
</div>
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
<div class="method-description">
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
<div class="method-source-code" id="to_s-source">
|
|
353
352
|
<pre>
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
<div id="validator-badges">
|
|
381
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
382
|
-
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
|
383
|
-
Rdoc Generator</a> 1.1.6</small>.</p>
|
|
384
|
-
</div>
|
|
353
|
+
<span class="ruby-comment"># File lib/qiflib_date.rb, line 29</span>
|
|
354
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
|
|
355
|
+
<span class="ruby-ivar">@ccyymmdd</span>
|
|
356
|
+
<span class="ruby-keyword">end</span></pre>
|
|
357
|
+
</div><!-- to_s-source -->
|
|
358
|
+
|
|
359
|
+
</div>
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
</div><!-- to_s-method -->
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
</div><!-- public-instance-method-details -->
|
|
368
|
+
|
|
369
|
+
</div><!-- 5Buntitled-5D -->
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
</div><!-- documentation -->
|
|
373
|
+
|
|
374
|
+
<div id="validator-badges">
|
|
375
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
376
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
|
377
|
+
Rdoc Generator</a> 2</small>.</p>
|
|
378
|
+
</div>
|
|
385
379
|
|
|
386
380
|
</body>
|
|
387
381
|
</html>
|