xbrlware-ce 1.0.4 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile.rb +4 -4
- data/Readme.txt +6 -1
- data/ReleaseNotes.txt +22 -5
- data/doc/classes/Edgar/HTMLFeedDownloader.html +8 -8
- data/doc/classes/Edgar/RSSFeedDownloader.html +15 -15
- data/doc/classes/Xbrlware.html +22 -0
- data/doc/classes/Xbrlware/Context.html +104 -74
- data/doc/classes/Xbrlware/Context/Period.html +305 -0
- data/doc/classes/Xbrlware/Entity.html +75 -51
- data/doc/classes/Xbrlware/Identifier.html +17 -17
- data/doc/classes/Xbrlware/Instance.html +165 -137
- data/doc/classes/Xbrlware/Item.html +19 -19
- data/doc/classes/Xbrlware/Linkbase/CalculationLinkbase/Calculation.html +1 -1
- data/doc/classes/Xbrlware/Linkbase/DefinitionLinkbase/Definition.html +2 -2
- data/doc/classes/Xbrlware/Linkbase/Linkbase/Link.html +9 -3
- data/doc/classes/Xbrlware/Linkbase/Linkbase/Link/Arc.html +4 -4
- data/doc/classes/Xbrlware/Linkbase/PresentationLinkbase/Presentation.html +1 -1
- data/doc/classes/Xbrlware/Report.html +352 -0
- data/doc/classes/Xbrlware/Taxonomy.html +48 -48
- data/doc/classes/Xbrlware/TaxonomyDefintion.html +15 -15
- data/doc/classes/Xbrlware/Unit.html +6 -6
- data/doc/classes/Xbrlware/Unit/Divide.html +6 -6
- data/doc/created.rid +1 -1
- data/doc/files/Readme_txt.html +9 -1
- data/doc/files/lib/xbrlware/context_rb.html +1 -1
- data/doc/files/lib/xbrlware/date_util_rb.html +1 -1
- data/doc/files/lib/xbrlware/instance_rb.html +1 -1
- data/doc/files/lib/xbrlware/linkbase/calculation_linkbase_rb.html +1 -1
- data/doc/files/lib/xbrlware/linkbase/definition_linkbase_rb.html +1 -1
- data/doc/files/lib/xbrlware/linkbase/linkbase_rb.html +1 -1
- data/doc/files/lib/xbrlware/linkbase/presentation_linkbase_rb.html +1 -1
- data/doc/files/lib/xbrlware/meta_util_rb.html +1 -1
- data/doc/files/lib/xbrlware/report_rb.html +101 -0
- data/doc/files/lib/xbrlware/taxonomy_rb.html +1 -1
- data/doc/files/lib/xbrlware/version_rb.html +129 -0
- data/doc/fr_class_index.html +2 -0
- data/doc/fr_file_index.html +2 -0
- data/doc/fr_method_index.html +75 -62
- data/example/case_study/buy_strategy.rb +1 -1
- data/example/case_study/c_sell_strategy.rb +1 -1
- data/lib/xbrlware/context.rb +77 -34
- data/lib/xbrlware/date_util.rb +16 -6
- data/lib/xbrlware/instance.rb +35 -28
- data/lib/xbrlware/linkbase/calculation_linkbase.rb +1 -1
- data/lib/xbrlware/linkbase/definition_linkbase.rb +2 -2
- data/lib/xbrlware/linkbase/linkbase.rb +3 -2
- data/lib/xbrlware/linkbase/presentation_linkbase.rb +1 -1
- data/lib/xbrlware/meta_util.rb +5 -0
- data/lib/xbrlware/report.rb +277 -0
- data/lib/xbrlware/taxonomy.rb +13 -10
- data/lib/xbrlware/version.rb +22 -0
- data/test/lib/xbrlware/47_context_test.rb +13 -4
- data/test/lib/xbrlware/date_util_test.rb +10 -2
- data/test/lib/xbrlware/instance_test.rb +19 -0
- data/test/lib/xbrlware/meta_util_test.rb +21 -1
- metadata +10 -4
@@ -92,13 +92,13 @@ Class to deal with taxonomy of instance file.
|
|
92
92
|
<h3 class="section-bar">Methods</h3>
|
93
93
|
|
94
94
|
<div class="name-list">
|
95
|
-
<a href="#
|
96
|
-
<a href="#
|
97
|
-
<a href="#
|
98
|
-
<a href="#
|
99
|
-
<a href="#
|
100
|
-
<a href="#
|
101
|
-
<a href="#
|
95
|
+
<a href="#M000071">callb</a>
|
96
|
+
<a href="#M000067">definition</a>
|
97
|
+
<a href="#M000069">deflb</a>
|
98
|
+
<a href="#M000072">init_all_lb</a>
|
99
|
+
<a href="#M000068">lablb</a>
|
100
|
+
<a href="#M000066">new</a>
|
101
|
+
<a href="#M000070">prelb</a>
|
102
102
|
</div>
|
103
103
|
</div>
|
104
104
|
|
@@ -120,11 +120,11 @@ Class to deal with taxonomy of instance file.
|
|
120
120
|
<div id="methods">
|
121
121
|
<h3 class="section-bar">Public Class methods</h3>
|
122
122
|
|
123
|
-
<div id="method-
|
124
|
-
<a name="
|
123
|
+
<div id="method-M000066" class="method-detail">
|
124
|
+
<a name="M000066"></a>
|
125
125
|
|
126
126
|
<div class="method-heading">
|
127
|
-
<a href="#
|
127
|
+
<a href="#M000066" class="method-signature">
|
128
128
|
<span class="method-name">new</span><span class="method-args">(taxonomy_path, instance)</span>
|
129
129
|
</a>
|
130
130
|
</div>
|
@@ -142,8 +142,8 @@ Creates a <a href="Taxonomy.html">Taxonomy</a>.
|
|
142
142
|
</td></tr>
|
143
143
|
</table>
|
144
144
|
<p><a class="source-toggle" href="#"
|
145
|
-
onclick="toggleCode('
|
146
|
-
<div class="method-source-code" id="
|
145
|
+
onclick="toggleCode('M000066-source');return false;">[Source]</a></p>
|
146
|
+
<div class="method-source-code" id="M000066-source">
|
147
147
|
<pre>
|
148
148
|
<span class="ruby-comment cmt"># File lib/xbrlware/taxonomy.rb, line 29</span>
|
149
149
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">taxonomy_path</span>, <span class="ruby-identifier">instance</span>)
|
@@ -177,11 +177,11 @@ Creates a <a href="Taxonomy.html">Taxonomy</a>.
|
|
177
177
|
|
178
178
|
<h3 class="section-bar">Public Instance methods</h3>
|
179
179
|
|
180
|
-
<div id="method-
|
181
|
-
<a name="
|
180
|
+
<div id="method-M000071" class="method-detail">
|
181
|
+
<a name="M000071"></a>
|
182
182
|
|
183
183
|
<div class="method-heading">
|
184
|
-
<a href="#
|
184
|
+
<a href="#M000071" class="method-signature">
|
185
185
|
<span class="method-name">callb</span><span class="method-args">(file_path=nil)</span>
|
186
186
|
</a>
|
187
187
|
</div>
|
@@ -191,15 +191,15 @@ Creates a <a href="Taxonomy.html">Taxonomy</a>.
|
|
191
191
|
initialize and returns calculation linkbase
|
192
192
|
</p>
|
193
193
|
<p><a class="source-toggle" href="#"
|
194
|
-
onclick="toggleCode('
|
195
|
-
<div class="method-source-code" id="
|
194
|
+
onclick="toggleCode('M000071-source');return false;">[Source]</a></p>
|
195
|
+
<div class="method-source-code" id="M000071-source">
|
196
196
|
<pre>
|
197
197
|
<span class="ruby-comment cmt"># File lib/xbrlware/taxonomy.rb, line 87</span>
|
198
198
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">callb</span>(<span class="ruby-identifier">file_path</span>=<span class="ruby-keyword kw">nil</span>)
|
199
199
|
<span class="ruby-identifier">file_path</span>=<span class="ruby-identifier">linkbase_href</span>(<span class="ruby-constant">Xbrlware</span><span class="ruby-operator">::</span><span class="ruby-constant">LBConstants</span><span class="ruby-operator">::</span><span class="ruby-constant">CALCULATION</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">file_path</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">&&</span> <span class="ruby-ivar">@callb</span>.<span class="ruby-identifier">nil?</span>
|
200
200
|
<span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@callb</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">file_path</span>.<span class="ruby-identifier">nil?</span>
|
201
201
|
<span class="ruby-identifier">$LOG</span>.<span class="ruby-identifier">warn</span>(<span class="ruby-value str">" Calculation linkbase already initialized. Ignoring "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">file_path</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">file_path</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-ivar">@callb</span>.<span class="ruby-identifier">nil?</span>
|
202
|
-
<span class="ruby-ivar">@callb</span> = <span class="ruby-constant">Xbrlware</span><span class="ruby-operator">::</span><span class="ruby-constant">Linkbase</span><span class="ruby-operator">::</span><span class="ruby-constant">CalculationLinkbase</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">file_path</span>, <span class="ruby-ivar">@instance</span>, <span class="ruby-identifier">lablb</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@callb</span>.<span class="ruby-identifier">nil?</span>
|
202
|
+
<span class="ruby-ivar">@callb</span> = <span class="ruby-constant">Xbrlware</span><span class="ruby-operator">::</span><span class="ruby-constant">Linkbase</span><span class="ruby-operator">::</span><span class="ruby-constant">CalculationLinkbase</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">file_path</span>, <span class="ruby-ivar">@instance</span>, <span class="ruby-identifier">lablb</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@callb</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">&&</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">file_path</span>)
|
203
203
|
<span class="ruby-ivar">@callb</span>
|
204
204
|
<span class="ruby-keyword kw">end</span>
|
205
205
|
</pre>
|
@@ -207,22 +207,22 @@ initialize and returns calculation linkbase
|
|
207
207
|
</div>
|
208
208
|
</div>
|
209
209
|
|
210
|
-
<div id="method-
|
211
|
-
<a name="
|
210
|
+
<div id="method-M000067" class="method-detail">
|
211
|
+
<a name="M000067"></a>
|
212
212
|
|
213
213
|
<div class="method-heading">
|
214
|
-
<a href="#
|
214
|
+
<a href="#M000067" class="method-signature">
|
215
215
|
<span class="method-name">definition</span><span class="method-args">(name)</span>
|
216
216
|
</a>
|
217
217
|
</div>
|
218
218
|
|
219
219
|
<div class="method-description">
|
220
220
|
<p>
|
221
|
-
gets taxonomy <a href="Taxonomy.html#
|
221
|
+
gets taxonomy <a href="Taxonomy.html#M000067">definition</a>
|
222
222
|
</p>
|
223
223
|
<p><a class="source-toggle" href="#"
|
224
|
-
onclick="toggleCode('
|
225
|
-
<div class="method-source-code" id="
|
224
|
+
onclick="toggleCode('M000067-source');return false;">[Source]</a></p>
|
225
|
+
<div class="method-source-code" id="M000067-source">
|
226
226
|
<pre>
|
227
227
|
<span class="ruby-comment cmt"># File lib/xbrlware/taxonomy.rb, line 55</span>
|
228
228
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">definition</span>(<span class="ruby-identifier">name</span>)
|
@@ -233,30 +233,30 @@ gets taxonomy <a href="Taxonomy.html#M000055">definition</a>
|
|
233
233
|
</div>
|
234
234
|
</div>
|
235
235
|
|
236
|
-
<div id="method-
|
237
|
-
<a name="
|
236
|
+
<div id="method-M000069" class="method-detail">
|
237
|
+
<a name="M000069"></a>
|
238
238
|
|
239
239
|
<div class="method-heading">
|
240
|
-
<a href="#
|
240
|
+
<a href="#M000069" class="method-signature">
|
241
241
|
<span class="method-name">deflb</span><span class="method-args">(file_path=nil)</span>
|
242
242
|
</a>
|
243
243
|
</div>
|
244
244
|
|
245
245
|
<div class="method-description">
|
246
246
|
<p>
|
247
|
-
initialize and returns <a href="Taxonomy.html#
|
247
|
+
initialize and returns <a href="Taxonomy.html#M000067">definition</a>
|
248
248
|
linkbase
|
249
249
|
</p>
|
250
250
|
<p><a class="source-toggle" href="#"
|
251
|
-
onclick="toggleCode('
|
252
|
-
<div class="method-source-code" id="
|
251
|
+
onclick="toggleCode('M000069-source');return false;">[Source]</a></p>
|
252
|
+
<div class="method-source-code" id="M000069-source">
|
253
253
|
<pre>
|
254
254
|
<span class="ruby-comment cmt"># File lib/xbrlware/taxonomy.rb, line 69</span>
|
255
255
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">deflb</span>(<span class="ruby-identifier">file_path</span>=<span class="ruby-keyword kw">nil</span>)
|
256
256
|
<span class="ruby-identifier">file_path</span>=<span class="ruby-identifier">linkbase_href</span>(<span class="ruby-constant">Xbrlware</span><span class="ruby-operator">::</span><span class="ruby-constant">LBConstants</span><span class="ruby-operator">::</span><span class="ruby-constant">DEFINITION</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">file_path</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">&&</span> <span class="ruby-ivar">@deflb</span>.<span class="ruby-identifier">nil?</span>
|
257
257
|
<span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@deflb</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">file_path</span>.<span class="ruby-identifier">nil?</span>
|
258
258
|
<span class="ruby-identifier">$LOG</span>.<span class="ruby-identifier">warn</span>(<span class="ruby-value str">" Definition linkbase already initialized. Ignoring "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">file_path</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">file_path</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-ivar">@deflb</span>.<span class="ruby-identifier">nil?</span>
|
259
|
-
<span class="ruby-ivar">@deflb</span> = <span class="ruby-constant">Xbrlware</span><span class="ruby-operator">::</span><span class="ruby-constant">Linkbase</span><span class="ruby-operator">::</span><span class="ruby-constant">DefinitionLinkbase</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">file_path</span>, <span class="ruby-identifier">lablb</span>()) <span class="ruby-keyword kw">if</span>
|
259
|
+
<span class="ruby-ivar">@deflb</span> = <span class="ruby-constant">Xbrlware</span><span class="ruby-operator">::</span><span class="ruby-constant">Linkbase</span><span class="ruby-operator">::</span><span class="ruby-constant">DefinitionLinkbase</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">file_path</span>, <span class="ruby-identifier">lablb</span>()) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@deflb</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">&&</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">file_path</span>)
|
260
260
|
<span class="ruby-ivar">@deflb</span>
|
261
261
|
<span class="ruby-keyword kw">end</span>
|
262
262
|
</pre>
|
@@ -264,11 +264,11 @@ linkbase
|
|
264
264
|
</div>
|
265
265
|
</div>
|
266
266
|
|
267
|
-
<div id="method-
|
268
|
-
<a name="
|
267
|
+
<div id="method-M000072" class="method-detail">
|
268
|
+
<a name="M000072"></a>
|
269
269
|
|
270
270
|
<div class="method-heading">
|
271
|
-
<a href="#
|
271
|
+
<a href="#M000072" class="method-signature">
|
272
272
|
<span class="method-name">init_all_lb</span><span class="method-args">(cal_file_path=nil, pre_file_path=nil, lab_file_path=nil, def_file_path=nil)</span>
|
273
273
|
</a>
|
274
274
|
</div>
|
@@ -278,8 +278,8 @@ linkbase
|
|
278
278
|
initialize all linkbases
|
279
279
|
</p>
|
280
280
|
<p><a class="source-toggle" href="#"
|
281
|
-
onclick="toggleCode('
|
282
|
-
<div class="method-source-code" id="
|
281
|
+
onclick="toggleCode('M000072-source');return false;">[Source]</a></p>
|
282
|
+
<div class="method-source-code" id="M000072-source">
|
283
283
|
<pre>
|
284
284
|
<span class="ruby-comment cmt"># File lib/xbrlware/taxonomy.rb, line 96</span>
|
285
285
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_all_lb</span>(<span class="ruby-identifier">cal_file_path</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">pre_file_path</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">lab_file_path</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">def_file_path</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -294,11 +294,11 @@ initialize all linkbases
|
|
294
294
|
</div>
|
295
295
|
</div>
|
296
296
|
|
297
|
-
<div id="method-
|
298
|
-
<a name="
|
297
|
+
<div id="method-M000068" class="method-detail">
|
298
|
+
<a name="M000068"></a>
|
299
299
|
|
300
300
|
<div class="method-heading">
|
301
|
-
<a href="#
|
301
|
+
<a href="#M000068" class="method-signature">
|
302
302
|
<span class="method-name">lablb</span><span class="method-args">(file_path=nil)</span>
|
303
303
|
</a>
|
304
304
|
</div>
|
@@ -308,15 +308,15 @@ initialize all linkbases
|
|
308
308
|
initialize and returns label linkbase
|
309
309
|
</p>
|
310
310
|
<p><a class="source-toggle" href="#"
|
311
|
-
onclick="toggleCode('
|
312
|
-
<div class="method-source-code" id="
|
311
|
+
onclick="toggleCode('M000068-source');return false;">[Source]</a></p>
|
312
|
+
<div class="method-source-code" id="M000068-source">
|
313
313
|
<pre>
|
314
314
|
<span class="ruby-comment cmt"># File lib/xbrlware/taxonomy.rb, line 60</span>
|
315
315
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lablb</span>(<span class="ruby-identifier">file_path</span>=<span class="ruby-keyword kw">nil</span>)
|
316
316
|
<span class="ruby-identifier">file_path</span>=<span class="ruby-identifier">linkbase_href</span>(<span class="ruby-constant">Xbrlware</span><span class="ruby-operator">::</span><span class="ruby-constant">LBConstants</span><span class="ruby-operator">::</span><span class="ruby-constant">LABEL</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">file_path</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">&&</span> <span class="ruby-ivar">@lablb</span>.<span class="ruby-identifier">nil?</span>
|
317
317
|
<span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@lablb</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">file_path</span>.<span class="ruby-identifier">nil?</span>
|
318
318
|
<span class="ruby-identifier">$LOG</span>.<span class="ruby-identifier">warn</span>(<span class="ruby-value str">" Label linkbase already initialized. Ignoring "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">file_path</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">file_path</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-ivar">@lablb</span>.<span class="ruby-identifier">nil?</span>
|
319
|
-
<span class="ruby-ivar">@lablb</span> = <span class="ruby-constant">Xbrlware</span><span class="ruby-operator">::</span><span class="ruby-constant">Linkbase</span><span class="ruby-operator">::</span><span class="ruby-constant">LabelLinkbase</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">file_path</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@lablb</span>.<span class="ruby-identifier">nil?</span>
|
319
|
+
<span class="ruby-ivar">@lablb</span> = <span class="ruby-constant">Xbrlware</span><span class="ruby-operator">::</span><span class="ruby-constant">Linkbase</span><span class="ruby-operator">::</span><span class="ruby-constant">LabelLinkbase</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">file_path</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@lablb</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">&&</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">file_path</span>)
|
320
320
|
<span class="ruby-ivar">@lablb</span>
|
321
321
|
<span class="ruby-keyword kw">end</span>
|
322
322
|
</pre>
|
@@ -324,11 +324,11 @@ initialize and returns label linkbase
|
|
324
324
|
</div>
|
325
325
|
</div>
|
326
326
|
|
327
|
-
<div id="method-
|
328
|
-
<a name="
|
327
|
+
<div id="method-M000070" class="method-detail">
|
328
|
+
<a name="M000070"></a>
|
329
329
|
|
330
330
|
<div class="method-heading">
|
331
|
-
<a href="#
|
331
|
+
<a href="#M000070" class="method-signature">
|
332
332
|
<span class="method-name">prelb</span><span class="method-args">(file_path=nil)</span>
|
333
333
|
</a>
|
334
334
|
</div>
|
@@ -338,15 +338,15 @@ initialize and returns label linkbase
|
|
338
338
|
initialize and returns presentation linkbase
|
339
339
|
</p>
|
340
340
|
<p><a class="source-toggle" href="#"
|
341
|
-
onclick="toggleCode('
|
342
|
-
<div class="method-source-code" id="
|
341
|
+
onclick="toggleCode('M000070-source');return false;">[Source]</a></p>
|
342
|
+
<div class="method-source-code" id="M000070-source">
|
343
343
|
<pre>
|
344
344
|
<span class="ruby-comment cmt"># File lib/xbrlware/taxonomy.rb, line 78</span>
|
345
345
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">prelb</span>(<span class="ruby-identifier">file_path</span>=<span class="ruby-keyword kw">nil</span>)
|
346
346
|
<span class="ruby-identifier">file_path</span>=<span class="ruby-identifier">linkbase_href</span>(<span class="ruby-constant">Xbrlware</span><span class="ruby-operator">::</span><span class="ruby-constant">LBConstants</span><span class="ruby-operator">::</span><span class="ruby-constant">PRESENTATION</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">file_path</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">&&</span> <span class="ruby-ivar">@prelb</span>.<span class="ruby-identifier">nil?</span>
|
347
347
|
<span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@prelb</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">file_path</span>.<span class="ruby-identifier">nil?</span>
|
348
348
|
<span class="ruby-identifier">$LOG</span>.<span class="ruby-identifier">warn</span>(<span class="ruby-value str">" Presentation linkbase already initialized. Ignoring "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">file_path</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">file_path</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-ivar">@prelb</span>.<span class="ruby-identifier">nil?</span>
|
349
|
-
<span class="ruby-ivar">@prelb</span> = <span class="ruby-constant">Xbrlware</span><span class="ruby-operator">::</span><span class="ruby-constant">Linkbase</span><span class="ruby-operator">::</span><span class="ruby-constant">PresentationLinkbase</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">file_path</span>, <span class="ruby-ivar">@instance</span>, <span class="ruby-identifier">deflb</span>, <span class="ruby-identifier">lablb</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@prelb</span>.<span class="ruby-identifier">nil?</span>
|
349
|
+
<span class="ruby-ivar">@prelb</span> = <span class="ruby-constant">Xbrlware</span><span class="ruby-operator">::</span><span class="ruby-constant">Linkbase</span><span class="ruby-operator">::</span><span class="ruby-constant">PresentationLinkbase</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">file_path</span>, <span class="ruby-ivar">@instance</span>, <span class="ruby-identifier">deflb</span>, <span class="ruby-identifier">lablb</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@prelb</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">&&</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">file_path</span>)
|
350
350
|
<span class="ruby-ivar">@prelb</span>
|
351
351
|
<span class="ruby-keyword kw">end</span>
|
352
352
|
</pre>
|
@@ -86,8 +86,8 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
89
|
+
<a href="#M000033">method_missing</a>
|
90
|
+
<a href="#M000032">new</a>
|
91
91
|
</div>
|
92
92
|
</div>
|
93
93
|
|
@@ -109,28 +109,28 @@
|
|
109
109
|
<div id="methods">
|
110
110
|
<h3 class="section-bar">Public Class methods</h3>
|
111
111
|
|
112
|
-
<div id="method-
|
113
|
-
<a name="
|
112
|
+
<div id="method-M000032" class="method-detail">
|
113
|
+
<a name="M000032"></a>
|
114
114
|
|
115
115
|
<div class="method-heading">
|
116
|
-
<a href="#
|
116
|
+
<a href="#M000032" class="method-signature">
|
117
117
|
<span class="method-name">new</span><span class="method-args">()</span>
|
118
118
|
</a>
|
119
119
|
</div>
|
120
120
|
|
121
121
|
<div class="method-description">
|
122
122
|
<p><a class="source-toggle" href="#"
|
123
|
-
onclick="toggleCode('
|
124
|
-
<div class="method-source-code" id="
|
123
|
+
onclick="toggleCode('M000032-source');return false;">[Source]</a></p>
|
124
|
+
<div class="method-source-code" id="M000032-source">
|
125
125
|
<pre>
|
126
|
-
<span class="ruby-comment cmt"># File lib/xbrlware/taxonomy.rb, line
|
126
|
+
<span class="ruby-comment cmt"># File lib/xbrlware/taxonomy.rb, line 123</span>
|
127
127
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
128
128
|
<span class="ruby-identifier">taxonomy_module</span>=<span class="ruby-constant">ENV</span>[<span class="ruby-value str">"TAXO_NAME"</span>].<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-value str">"-"</span>, <span class="ruby-value str">""</span>) <span class="ruby-operator">+</span> <span class="ruby-constant">ENV</span>[<span class="ruby-value str">"TAXO_VER"</span>].<span class="ruby-identifier">to_s</span>
|
129
129
|
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">eval</span>(<span class="ruby-node">"defined?(Taxonomies::#{taxonomy_module}) == 'constant' and Taxonomies::#{taxonomy_module}.class == Module"</span>)
|
130
130
|
<span class="ruby-identifier">eval</span>(<span class="ruby-node">"self.extend Taxonomies::#{taxonomy_module}"</span>)
|
131
131
|
<span class="ruby-keyword kw">else</span>
|
132
132
|
<span class="ruby-identifier">$LOG</span>.<span class="ruby-identifier">warn</span>(<span class="ruby-value str">"No taxonomy found for name ["</span><span class="ruby-operator">+</span><span class="ruby-constant">ENV</span>[<span class="ruby-value str">"TAXO_NAME"</span>].<span class="ruby-identifier">to_s</span><span class="ruby-operator">+</span><span class="ruby-value str">"] and version ["</span><span class="ruby-operator">+</span><span class="ruby-constant">ENV</span>[<span class="ruby-value str">"TAXO_VER"</span>].<span class="ruby-identifier">to_s</span><span class="ruby-operator">+</span><span class="ruby-value str">"]"</span>)
|
133
|
-
<span class="ruby-keyword kw">end</span>
|
133
|
+
<span class="ruby-keyword kw">end</span>
|
134
134
|
<span class="ruby-keyword kw">end</span>
|
135
135
|
</pre>
|
136
136
|
</div>
|
@@ -139,21 +139,21 @@
|
|
139
139
|
|
140
140
|
<h3 class="section-bar">Public Instance methods</h3>
|
141
141
|
|
142
|
-
<div id="method-
|
143
|
-
<a name="
|
142
|
+
<div id="method-M000033" class="method-detail">
|
143
|
+
<a name="M000033"></a>
|
144
144
|
|
145
145
|
<div class="method-heading">
|
146
|
-
<a href="#
|
146
|
+
<a href="#M000033" class="method-signature">
|
147
147
|
<span class="method-name">method_missing</span><span class="method-args">(m, *args)</span>
|
148
148
|
</a>
|
149
149
|
</div>
|
150
150
|
|
151
151
|
<div class="method-description">
|
152
152
|
<p><a class="source-toggle" href="#"
|
153
|
-
onclick="toggleCode('
|
154
|
-
<div class="method-source-code" id="
|
153
|
+
onclick="toggleCode('M000033-source');return false;">[Source]</a></p>
|
154
|
+
<div class="method-source-code" id="M000033-source">
|
155
155
|
<pre>
|
156
|
-
<span class="ruby-comment cmt"># File lib/xbrlware/taxonomy.rb, line
|
156
|
+
<span class="ruby-comment cmt"># File lib/xbrlware/taxonomy.rb, line 132</span>
|
157
157
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">m</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
158
158
|
<span class="ruby-keyword kw">nil</span>
|
159
159
|
<span class="ruby-keyword kw">end</span>
|
@@ -94,7 +94,7 @@ instance page on xbrlware wiki</a> for more details.
|
|
94
94
|
<h3 class="section-bar">Methods</h3>
|
95
95
|
|
96
96
|
<div class="name-list">
|
97
|
-
<a href="#
|
97
|
+
<a href="#M000064">new</a>
|
98
98
|
</div>
|
99
99
|
</div>
|
100
100
|
|
@@ -140,19 +140,19 @@ instance page on xbrlware wiki</a> for more details.
|
|
140
140
|
<div id="methods">
|
141
141
|
<h3 class="section-bar">Public Class methods</h3>
|
142
142
|
|
143
|
-
<div id="method-
|
144
|
-
<a name="
|
143
|
+
<div id="method-M000064" class="method-detail">
|
144
|
+
<a name="M000064"></a>
|
145
145
|
|
146
146
|
<div class="method-heading">
|
147
|
-
<a href="#
|
147
|
+
<a href="#M000064" class="method-signature">
|
148
148
|
<span class="method-name">new</span><span class="method-args">(id, measure)</span>
|
149
149
|
</a>
|
150
150
|
</div>
|
151
151
|
|
152
152
|
<div class="method-description">
|
153
153
|
<p><a class="source-toggle" href="#"
|
154
|
-
onclick="toggleCode('
|
155
|
-
<div class="method-source-code" id="
|
154
|
+
onclick="toggleCode('M000064-source');return false;">[Source]</a></p>
|
155
|
+
<div class="method-source-code" id="M000064-source">
|
156
156
|
<pre>
|
157
157
|
<span class="ruby-comment cmt"># File lib/xbrlware/unit.rb, line 27</span>
|
158
158
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">id</span>, <span class="ruby-identifier">measure</span>)
|
@@ -86,7 +86,7 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
89
|
+
<a href="#M000065">new</a>
|
90
90
|
</div>
|
91
91
|
</div>
|
92
92
|
|
@@ -126,19 +126,19 @@
|
|
126
126
|
<div id="methods">
|
127
127
|
<h3 class="section-bar">Public Class methods</h3>
|
128
128
|
|
129
|
-
<div id="method-
|
130
|
-
<a name="
|
129
|
+
<div id="method-M000065" class="method-detail">
|
130
|
+
<a name="M000065"></a>
|
131
131
|
|
132
132
|
<div class="method-heading">
|
133
|
-
<a href="#
|
133
|
+
<a href="#M000065" class="method-signature">
|
134
134
|
<span class="method-name">new</span><span class="method-args">(numerator, denominator)</span>
|
135
135
|
</a>
|
136
136
|
</div>
|
137
137
|
|
138
138
|
<div class="method-description">
|
139
139
|
<p><a class="source-toggle" href="#"
|
140
|
-
onclick="toggleCode('
|
141
|
-
<div class="method-source-code" id="
|
140
|
+
onclick="toggleCode('M000065-source');return false;">[Source]</a></p>
|
141
|
+
<div class="method-source-code" id="M000065-source">
|
142
142
|
<pre>
|
143
143
|
<span class="ruby-comment cmt"># File lib/xbrlware/unit.rb, line 36</span>
|
144
144
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">numerator</span>, <span class="ruby-identifier">denominator</span>)
|
data/doc/created.rid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
Tue, 23 Feb 2010 11:38:26 +0530
|
data/doc/files/Readme_txt.html
CHANGED
@@ -56,7 +56,7 @@
|
|
56
56
|
</tr>
|
57
57
|
<tr class="top-aligned-row">
|
58
58
|
<td><strong>Last Update:</strong></td>
|
59
|
-
<td>
|
59
|
+
<td>Tue Feb 23 11:28:49 +0530 2010</td>
|
60
60
|
</tr>
|
61
61
|
</table>
|
62
62
|
</div>
|
@@ -88,6 +88,14 @@ distributed under the License is distributed on an "AS IS" BASIS,
|
|
88
88
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
89
89
|
See the License for the specific language governing permissions and
|
90
90
|
limitations under the License.
|
91
|
+
</p>
|
92
|
+
<p>
|
93
|
+
Get started Guide
|
94
|
+
</p>
|
95
|
+
<h6>============</h6>
|
96
|
+
<p>
|
97
|
+
<a
|
98
|
+
href="http://code.google.com/p/xbrlware/wiki/GetStarted">code.google.com/p/xbrlware/wiki/GetStarted</a>
|
91
99
|
</p>
|
92
100
|
|
93
101
|
</div>
|