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