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/Money.html
CHANGED
|
@@ -1,311 +1,304 @@
|
|
|
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::Money</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
|
-
|
|
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_money_rb.html?TB_iframe=true&height=550&width=785"
|
|
38
|
+
class="thickbox" title="lib/qiflib_money.rb">lib/qiflib_money.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-cents">#cents</a></li>
|
|
71
|
+
|
|
72
|
+
<li><a href="#method-i-to_s">#to_s</a></li>
|
|
73
|
+
|
|
74
|
+
</ul>
|
|
75
|
+
</div>
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
</div>
|
|
80
|
+
|
|
81
|
+
<div id="project-metadata">
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
<div id="fileindex-section" class="section project-section">
|
|
85
|
+
<h3 class="section-header">Files</h3>
|
|
86
|
+
<ul>
|
|
87
|
+
|
|
88
|
+
<li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
|
|
89
|
+
|
|
90
|
+
</ul>
|
|
91
|
+
</div>
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
<div id="classindex-section" class="section project-section">
|
|
95
|
+
<h3 class="section-header">Class/Module Index
|
|
96
|
+
<span class="search-toggle"><img src="../images/find.png"
|
|
97
|
+
height="16" width="16" alt="[+]"
|
|
98
|
+
title="show/hide quicksearch" /></span></h3>
|
|
99
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
|
100
|
+
<fieldset>
|
|
101
|
+
<legend>Quicksearch</legend>
|
|
102
|
+
<input type="text" name="quicksearch" value=""
|
|
103
|
+
class="quicksearch-field" />
|
|
104
|
+
</fieldset>
|
|
105
|
+
</form>
|
|
106
|
+
|
|
107
|
+
<ul class="link-list">
|
|
108
|
+
|
|
109
|
+
<li><a href="../Qiflib.html">Qiflib</a></li>
|
|
110
|
+
|
|
111
|
+
<li><a href="../Qiflib/Category.html">Qiflib::Category</a></li>
|
|
112
|
+
|
|
113
|
+
<li><a href="../Qiflib/Date.html">Qiflib::Date</a></li>
|
|
114
|
+
|
|
115
|
+
<li><a href="../Qiflib/Money.html">Qiflib::Money</a></li>
|
|
116
|
+
|
|
117
|
+
<li><a href="../Qiflib/Transaction.html">Qiflib::Transaction</a></li>
|
|
118
|
+
|
|
119
|
+
<li><a href="../Qiflib/Util.html">Qiflib::Util</a></li>
|
|
120
|
+
|
|
121
|
+
</ul>
|
|
122
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
|
123
|
+
</div>
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
128
|
+
|
|
129
|
+
<div id="documentation">
|
|
130
|
+
<h1 class="class">Qiflib::Money</h1>
|
|
131
|
+
|
|
132
|
+
<div id="description" class="description">
|
|
133
|
+
|
|
134
|
+
<p>Instances of this class represent a dollar amount values from within a qif
|
|
135
|
+
file.</p>
|
|
136
|
+
|
|
137
|
+
</div><!-- description -->
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
<!-- Attributes -->
|
|
151
|
+
<div id="attribute-method-details" class="method-section section">
|
|
152
|
+
<h3 class="section-header">Attributes</h3>
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
<div id="string_value-attribute-method" class="method-detail">
|
|
156
|
+
<a name="string_value"></a>
|
|
157
|
+
|
|
158
|
+
<div class="method-heading attribute-method-heading">
|
|
159
|
+
<span class="method-name">string_value</span><span
|
|
160
|
+
class="attribute-access-type">[R]</span>
|
|
161
|
+
</div>
|
|
162
|
+
|
|
163
|
+
<div class="method-description">
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
</div>
|
|
168
|
+
</div>
|
|
169
|
+
|
|
170
|
+
</div><!-- attribute-method-details -->
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
<!-- Methods -->
|
|
174
|
+
|
|
175
|
+
<div id="public-class-method-details" class="method-section section">
|
|
176
|
+
<h3 class="section-header">Public Class Methods</h3>
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
<div id="new-method" class="method-detail ">
|
|
180
|
+
<a name="method-c-new"></a>
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
<div class="method-heading">
|
|
184
|
+
<span class="method-name">new</span><span
|
|
185
|
+
class="method-args">(s='0.00')</span>
|
|
186
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
187
|
+
</div>
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
<div class="method-description">
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
<div class="method-source-code" id="new-source">
|
|
197
197
|
<pre>
|
|
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
|
-
id="cents-source">
|
|
198
|
+
<span class="ruby-comment"># File lib/qiflib_money.rb, line 10</span>
|
|
199
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">s</span>=<span class="ruby-string">'0.00'</span>)
|
|
200
|
+
<span class="ruby-ivar">@string_value</span> = <span class="ruby-node">"#{s}"</span>.<span class="ruby-identifier">tr</span>(<span class="ruby-string">'TBL, '</span> , <span class="ruby-string">''</span>)
|
|
201
|
+
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@string_value</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator"><</span> <span class="ruby-value">1</span>
|
|
202
|
+
<span class="ruby-ivar">@string_value</span> = <span class="ruby-string">'0.00'</span>
|
|
203
|
+
<span class="ruby-keyword">end</span>
|
|
204
|
+
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@string_value</span>.<span class="ruby-identifier">end_with?</span>(<span class="ruby-string">'.'</span>)
|
|
205
|
+
<span class="ruby-ivar">@string_value</span> = <span class="ruby-node">"#{string_value}00"</span>
|
|
206
|
+
<span class="ruby-keyword">end</span>
|
|
207
|
+
<span class="ruby-keyword">end</span></pre>
|
|
208
|
+
</div><!-- new-source -->
|
|
209
|
+
|
|
210
|
+
</div>
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
</div><!-- new-method -->
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
</div><!-- public-class-method-details -->
|
|
219
|
+
|
|
220
|
+
<div id="public-instance-method-details" class="method-section section">
|
|
221
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
<div id="cents-method" class="method-detail ">
|
|
225
|
+
<a name="method-i-cents"></a>
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
<div class="method-heading">
|
|
229
|
+
<span class="method-name">cents</span><span
|
|
230
|
+
class="method-args">()</span>
|
|
231
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
232
|
+
</div>
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
<div class="method-description">
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
<div class="method-source-code" id="cents-source">
|
|
243
242
|
<pre>
|
|
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
|
-
id="to-s-source">
|
|
243
|
+
<span class="ruby-comment"># File lib/qiflib_money.rb, line 24</span>
|
|
244
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">cents</span>
|
|
245
|
+
<span class="ruby-identifier">string_value</span>.<span class="ruby-identifier">tr</span>(<span class="ruby-string">"$."</span>,<span class="ruby-string">""</span>).<span class="ruby-identifier">to_i</span>
|
|
246
|
+
<span class="ruby-keyword">end</span></pre>
|
|
247
|
+
</div><!-- cents-source -->
|
|
248
|
+
|
|
249
|
+
</div>
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
</div><!-- cents-method -->
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
<div id="to_s-method" class="method-detail ">
|
|
258
|
+
<a name="method-i-to_s"></a>
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
<div class="method-heading">
|
|
262
|
+
<span class="method-name">to_s</span><span
|
|
263
|
+
class="method-args">()</span>
|
|
264
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
265
|
+
</div>
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
<div class="method-description">
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
<div class="method-source-code" id="to_s-source">
|
|
277
275
|
<pre>
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
<div id="validator-badges">
|
|
305
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
306
|
-
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
|
307
|
-
Rdoc Generator</a> 1.1.6</small>.</p>
|
|
308
|
-
</div>
|
|
276
|
+
<span class="ruby-comment"># File lib/qiflib_money.rb, line 20</span>
|
|
277
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
|
|
278
|
+
<span class="ruby-ivar">@string_value</span>
|
|
279
|
+
<span class="ruby-keyword">end</span></pre>
|
|
280
|
+
</div><!-- to_s-source -->
|
|
281
|
+
|
|
282
|
+
</div>
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
</div><!-- to_s-method -->
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
</div><!-- public-instance-method-details -->
|
|
291
|
+
|
|
292
|
+
</div><!-- 5Buntitled-5D -->
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
</div><!-- documentation -->
|
|
296
|
+
|
|
297
|
+
<div id="validator-badges">
|
|
298
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
299
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
|
300
|
+
Rdoc Generator</a> 2</small>.</p>
|
|
301
|
+
</div>
|
|
309
302
|
|
|
310
303
|
</body>
|
|
311
304
|
</html>
|