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.
Files changed (56) hide show
  1. data/Rakefile.rb +4 -4
  2. data/Readme.txt +6 -1
  3. data/ReleaseNotes.txt +22 -5
  4. data/doc/classes/Edgar/HTMLFeedDownloader.html +8 -8
  5. data/doc/classes/Edgar/RSSFeedDownloader.html +15 -15
  6. data/doc/classes/Xbrlware.html +22 -0
  7. data/doc/classes/Xbrlware/Context.html +104 -74
  8. data/doc/classes/Xbrlware/Context/Period.html +305 -0
  9. data/doc/classes/Xbrlware/Entity.html +75 -51
  10. data/doc/classes/Xbrlware/Identifier.html +17 -17
  11. data/doc/classes/Xbrlware/Instance.html +165 -137
  12. data/doc/classes/Xbrlware/Item.html +19 -19
  13. data/doc/classes/Xbrlware/Linkbase/CalculationLinkbase/Calculation.html +1 -1
  14. data/doc/classes/Xbrlware/Linkbase/DefinitionLinkbase/Definition.html +2 -2
  15. data/doc/classes/Xbrlware/Linkbase/Linkbase/Link.html +9 -3
  16. data/doc/classes/Xbrlware/Linkbase/Linkbase/Link/Arc.html +4 -4
  17. data/doc/classes/Xbrlware/Linkbase/PresentationLinkbase/Presentation.html +1 -1
  18. data/doc/classes/Xbrlware/Report.html +352 -0
  19. data/doc/classes/Xbrlware/Taxonomy.html +48 -48
  20. data/doc/classes/Xbrlware/TaxonomyDefintion.html +15 -15
  21. data/doc/classes/Xbrlware/Unit.html +6 -6
  22. data/doc/classes/Xbrlware/Unit/Divide.html +6 -6
  23. data/doc/created.rid +1 -1
  24. data/doc/files/Readme_txt.html +9 -1
  25. data/doc/files/lib/xbrlware/context_rb.html +1 -1
  26. data/doc/files/lib/xbrlware/date_util_rb.html +1 -1
  27. data/doc/files/lib/xbrlware/instance_rb.html +1 -1
  28. data/doc/files/lib/xbrlware/linkbase/calculation_linkbase_rb.html +1 -1
  29. data/doc/files/lib/xbrlware/linkbase/definition_linkbase_rb.html +1 -1
  30. data/doc/files/lib/xbrlware/linkbase/linkbase_rb.html +1 -1
  31. data/doc/files/lib/xbrlware/linkbase/presentation_linkbase_rb.html +1 -1
  32. data/doc/files/lib/xbrlware/meta_util_rb.html +1 -1
  33. data/doc/files/lib/xbrlware/report_rb.html +101 -0
  34. data/doc/files/lib/xbrlware/taxonomy_rb.html +1 -1
  35. data/doc/files/lib/xbrlware/version_rb.html +129 -0
  36. data/doc/fr_class_index.html +2 -0
  37. data/doc/fr_file_index.html +2 -0
  38. data/doc/fr_method_index.html +75 -62
  39. data/example/case_study/buy_strategy.rb +1 -1
  40. data/example/case_study/c_sell_strategy.rb +1 -1
  41. data/lib/xbrlware/context.rb +77 -34
  42. data/lib/xbrlware/date_util.rb +16 -6
  43. data/lib/xbrlware/instance.rb +35 -28
  44. data/lib/xbrlware/linkbase/calculation_linkbase.rb +1 -1
  45. data/lib/xbrlware/linkbase/definition_linkbase.rb +2 -2
  46. data/lib/xbrlware/linkbase/linkbase.rb +3 -2
  47. data/lib/xbrlware/linkbase/presentation_linkbase.rb +1 -1
  48. data/lib/xbrlware/meta_util.rb +5 -0
  49. data/lib/xbrlware/report.rb +277 -0
  50. data/lib/xbrlware/taxonomy.rb +13 -10
  51. data/lib/xbrlware/version.rb +22 -0
  52. data/test/lib/xbrlware/47_context_test.rb +13 -4
  53. data/test/lib/xbrlware/date_util_test.rb +10 -2
  54. data/test/lib/xbrlware/instance_test.rb +19 -0
  55. data/test/lib/xbrlware/meta_util_test.rb +21 -1
  56. metadata +10 -4
@@ -0,0 +1,305 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: Xbrlware::Context::Period</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">Xbrlware::Context::Period</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../../files/lib/xbrlware/context_rb.html">
59
+ lib/xbrlware/context.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ Object
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+
82
+
83
+ </div>
84
+
85
+ <div id="method-list">
86
+ <h3 class="section-bar">Methods</h3>
87
+
88
+ <div class="name-list">
89
+ <a href="#M000049">eql?</a>&nbsp;&nbsp;
90
+ <a href="#M000050">hash</a>&nbsp;&nbsp;
91
+ <a href="#M000052">is_duration?</a>&nbsp;&nbsp;
92
+ <a href="#M000053">is_forever?</a>&nbsp;&nbsp;
93
+ <a href="#M000051">is_instant?</a>&nbsp;&nbsp;
94
+ <a href="#M000047">new</a>&nbsp;&nbsp;
95
+ <a href="#M000048">to_s</a>&nbsp;&nbsp;
96
+ </div>
97
+ </div>
98
+
99
+ </div>
100
+
101
+
102
+ <!-- if includes -->
103
+
104
+ <div id="section">
105
+
106
+
107
+
108
+
109
+
110
+ <div id="attribute-list">
111
+ <h3 class="section-bar">Attributes</h3>
112
+
113
+ <div class="name-list">
114
+ <table>
115
+ <tr class="top-aligned-row context-row">
116
+ <td class="context-item-name">value</td>
117
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
118
+ <td class="context-item-desc"></td>
119
+ </tr>
120
+ </table>
121
+ </div>
122
+ </div>
123
+
124
+
125
+
126
+ <!-- if method_list -->
127
+ <div id="methods">
128
+ <h3 class="section-bar">Public Class methods</h3>
129
+
130
+ <div id="method-M000047" class="method-detail">
131
+ <a name="M000047"></a>
132
+
133
+ <div class="method-heading">
134
+ <a href="#M000047" class="method-signature">
135
+ <span class="method-name">new</span><span class="method-args">(value)</span>
136
+ </a>
137
+ </div>
138
+
139
+ <div class="method-description">
140
+ <p><a class="source-toggle" href="#"
141
+ onclick="toggleCode('M000047-source');return false;">[Source]</a></p>
142
+ <div class="method-source-code" id="M000047-source">
143
+ <pre>
144
+ <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 30</span>
145
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">value</span>)
146
+ <span class="ruby-ivar">@value</span> = <span class="ruby-identifier">value</span>
147
+ <span class="ruby-keyword kw">end</span>
148
+ </pre>
149
+ </div>
150
+ </div>
151
+ </div>
152
+
153
+ <h3 class="section-bar">Public Instance methods</h3>
154
+
155
+ <div id="method-M000049" class="method-detail">
156
+ <a name="M000049"></a>
157
+
158
+ <div class="method-heading">
159
+ <a href="#M000049" class="method-signature">
160
+ <span class="method-name">eql?</span><span class="method-args">(o)</span>
161
+ </a>
162
+ </div>
163
+
164
+ <div class="method-description">
165
+ <p><a class="source-toggle" href="#"
166
+ onclick="toggleCode('M000049-source');return false;">[Source]</a></p>
167
+ <div class="method-source-code" id="M000049-source">
168
+ <pre>
169
+ <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 38</span>
170
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">eql?</span>(<span class="ruby-identifier">o</span>)
171
+ <span class="ruby-identifier">o</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Period</span>) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-ivar">@value</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">o</span>.<span class="ruby-identifier">value</span>
172
+ <span class="ruby-keyword kw">end</span>
173
+ </pre>
174
+ </div>
175
+ </div>
176
+ </div>
177
+
178
+ <div id="method-M000050" class="method-detail">
179
+ <a name="M000050"></a>
180
+
181
+ <div class="method-heading">
182
+ <a href="#M000050" class="method-signature">
183
+ <span class="method-name">hash</span><span class="method-args">()</span>
184
+ </a>
185
+ </div>
186
+
187
+ <div class="method-description">
188
+ <p><a class="source-toggle" href="#"
189
+ onclick="toggleCode('M000050-source');return false;">[Source]</a></p>
190
+ <div class="method-source-code" id="M000050-source">
191
+ <pre>
192
+ <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 42</span>
193
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">hash</span>
194
+ <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">hash</span>
195
+ <span class="ruby-keyword kw">end</span>
196
+ </pre>
197
+ </div>
198
+ </div>
199
+ </div>
200
+
201
+ <div id="method-M000052" class="method-detail">
202
+ <a name="M000052"></a>
203
+
204
+ <div class="method-heading">
205
+ <a href="#M000052" class="method-signature">
206
+ <span class="method-name">is_duration?</span><span class="method-args">()</span>
207
+ </a>
208
+ </div>
209
+
210
+ <div class="method-description">
211
+ <p><a class="source-toggle" href="#"
212
+ onclick="toggleCode('M000052-source');return false;">[Source]</a></p>
213
+ <div class="method-source-code" id="M000052-source">
214
+ <pre>
215
+ <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 50</span>
216
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_duration?</span>
217
+ <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>)
218
+ <span class="ruby-keyword kw">end</span>
219
+ </pre>
220
+ </div>
221
+ </div>
222
+ </div>
223
+
224
+ <div id="method-M000053" class="method-detail">
225
+ <a name="M000053"></a>
226
+
227
+ <div class="method-heading">
228
+ <a href="#M000053" class="method-signature">
229
+ <span class="method-name">is_forever?</span><span class="method-args">()</span>
230
+ </a>
231
+ </div>
232
+
233
+ <div class="method-description">
234
+ <p><a class="source-toggle" href="#"
235
+ onclick="toggleCode('M000053-source');return false;">[Source]</a></p>
236
+ <div class="method-source-code" id="M000053-source">
237
+ <pre>
238
+ <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 54</span>
239
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_forever?</span>
240
+ <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Fixnum</span>)
241
+ <span class="ruby-keyword kw">end</span>
242
+ </pre>
243
+ </div>
244
+ </div>
245
+ </div>
246
+
247
+ <div id="method-M000051" class="method-detail">
248
+ <a name="M000051"></a>
249
+
250
+ <div class="method-heading">
251
+ <a href="#M000051" class="method-signature">
252
+ <span class="method-name">is_instant?</span><span class="method-args">()</span>
253
+ </a>
254
+ </div>
255
+
256
+ <div class="method-description">
257
+ <p><a class="source-toggle" href="#"
258
+ onclick="toggleCode('M000051-source');return false;">[Source]</a></p>
259
+ <div class="method-source-code" id="M000051-source">
260
+ <pre>
261
+ <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 46</span>
262
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_instant?</span>
263
+ <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Date</span>)
264
+ <span class="ruby-keyword kw">end</span>
265
+ </pre>
266
+ </div>
267
+ </div>
268
+ </div>
269
+
270
+ <div id="method-M000048" class="method-detail">
271
+ <a name="M000048"></a>
272
+
273
+ <div class="method-heading">
274
+ <a href="#M000048" class="method-signature">
275
+ <span class="method-name">to_s</span><span class="method-args">()</span>
276
+ </a>
277
+ </div>
278
+
279
+ <div class="method-description">
280
+ <p><a class="source-toggle" href="#"
281
+ onclick="toggleCode('M000048-source');return false;">[Source]</a></p>
282
+ <div class="method-source-code" id="M000048-source">
283
+ <pre>
284
+ <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 34</span>
285
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
286
+ <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">to_s</span>
287
+ <span class="ruby-keyword kw">end</span>
288
+ </pre>
289
+ </div>
290
+ </div>
291
+ </div>
292
+
293
+
294
+ </div>
295
+
296
+
297
+ </div>
298
+
299
+
300
+ <div id="validator-badges">
301
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
302
+ </div>
303
+
304
+ </body>
305
+ </html>
@@ -86,12 +86,13 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000046">explicit_dimensions</a>&nbsp;&nbsp;
90
- <a href="#M000048">explicit_dimensions_domains</a>&nbsp;&nbsp;
91
- <a href="#M000047">explicit_domains</a>&nbsp;&nbsp;
92
- <a href="#M000045">has_explicit_dimensions?</a>&nbsp;&nbsp;
93
- <a href="#M000043">new</a>&nbsp;&nbsp;
94
- <a href="#M000044">to_s</a>&nbsp;&nbsp;
89
+ <a href="#M000058">explicit_dimensions</a>&nbsp;&nbsp;
90
+ <a href="#M000060">explicit_dimensions_domains</a>&nbsp;&nbsp;
91
+ <a href="#M000059">explicit_domains</a>&nbsp;&nbsp;
92
+ <a href="#M000057">has_explicit_dimensions?</a>&nbsp;&nbsp;
93
+ <a href="#M000055">has_segment?</a>&nbsp;&nbsp;
94
+ <a href="#M000054">new</a>&nbsp;&nbsp;
95
+ <a href="#M000056">to_s</a>&nbsp;&nbsp;
95
96
  </div>
96
97
  </div>
97
98
 
@@ -131,22 +132,22 @@
131
132
  <div id="methods">
132
133
  <h3 class="section-bar">Public Class methods</h3>
133
134
 
134
- <div id="method-M000043" class="method-detail">
135
- <a name="M000043"></a>
135
+ <div id="method-M000054" class="method-detail">
136
+ <a name="M000054"></a>
136
137
 
137
138
  <div class="method-heading">
138
- <a href="#M000043" class="method-signature">
139
- <span class="method-name">new</span><span class="method-args">(identifier,segment=nil)</span>
139
+ <a href="#M000054" class="method-signature">
140
+ <span class="method-name">new</span><span class="method-args">(identifier, segment=nil)</span>
140
141
  </a>
141
142
  </div>
142
143
 
143
144
  <div class="method-description">
144
145
  <p><a class="source-toggle" href="#"
145
- onclick="toggleCode('M000043-source');return false;">[Source]</a></p>
146
- <div class="method-source-code" id="M000043-source">
146
+ onclick="toggleCode('M000054-source');return false;">[Source]</a></p>
147
+ <div class="method-source-code" id="M000054-source">
147
148
  <pre>
148
- <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 74</span>
149
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">identifier</span>,<span class="ruby-identifier">segment</span>=<span class="ruby-keyword kw">nil</span>)
149
+ <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 112</span>
150
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">identifier</span>, <span class="ruby-identifier">segment</span>=<span class="ruby-keyword kw">nil</span>)
150
151
  <span class="ruby-ivar">@identifier</span> = <span class="ruby-identifier">identifier</span>
151
152
  <span class="ruby-ivar">@segment</span> = <span class="ruby-identifier">segment</span>
152
153
  <span class="ruby-keyword kw">end</span>
@@ -157,21 +158,21 @@
157
158
 
158
159
  <h3 class="section-bar">Public Instance methods</h3>
159
160
 
160
- <div id="method-M000046" class="method-detail">
161
- <a name="M000046"></a>
161
+ <div id="method-M000058" class="method-detail">
162
+ <a name="M000058"></a>
162
163
 
163
164
  <div class="method-heading">
164
- <a href="#M000046" class="method-signature">
165
+ <a href="#M000058" class="method-signature">
165
166
  <span class="method-name">explicit_dimensions</span><span class="method-args">()</span>
166
167
  </a>
167
168
  </div>
168
169
 
169
170
  <div class="method-description">
170
171
  <p><a class="source-toggle" href="#"
171
- onclick="toggleCode('M000046-source');return false;">[Source]</a></p>
172
- <div class="method-source-code" id="M000046-source">
172
+ onclick="toggleCode('M000058-source');return false;">[Source]</a></p>
173
+ <div class="method-source-code" id="M000058-source">
173
174
  <pre>
174
- <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 100</span>
175
+ <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 142</span>
175
176
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">explicit_dimensions</span>
176
177
  <span class="ruby-identifier">dim</span> = <span class="ruby-constant">Set</span>.<span class="ruby-identifier">new</span>
177
178
  <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@segment</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-ivar">@segment</span>[<span class="ruby-value str">&quot;explicitMember&quot;</span>].<span class="ruby-identifier">nil?</span>
@@ -186,28 +187,28 @@
186
187
  </div>
187
188
  </div>
188
189
 
189
- <div id="method-M000048" class="method-detail">
190
- <a name="M000048"></a>
190
+ <div id="method-M000060" class="method-detail">
191
+ <a name="M000060"></a>
191
192
 
192
193
  <div class="method-heading">
193
- <a href="#M000048" class="method-signature">
194
+ <a href="#M000060" class="method-signature">
194
195
  <span class="method-name">explicit_dimensions_domains</span><span class="method-args">()</span>
195
196
  </a>
196
197
  </div>
197
198
 
198
199
  <div class="method-description">
199
200
  <p><a class="source-toggle" href="#"
200
- onclick="toggleCode('M000048-source');return false;">[Source]</a></p>
201
- <div class="method-source-code" id="M000048-source">
201
+ onclick="toggleCode('M000060-source');return false;">[Source]</a></p>
202
+ <div class="method-source-code" id="M000060-source">
202
203
  <pre>
203
- <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 124</span>
204
+ <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 166</span>
204
205
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">explicit_dimensions_domains</span>
205
206
  <span class="ruby-identifier">dim_dom</span>={}
206
207
  <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">has_explicit_dimensions?</span>
207
208
  <span class="ruby-ivar">@segment</span>[<span class="ruby-value str">&quot;explicitMember&quot;</span>].<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">member</span><span class="ruby-operator">|</span>
208
209
  <span class="ruby-identifier">dim_dom</span>[<span class="ruby-identifier">member</span>[<span class="ruby-value str">&quot;dimension&quot;</span>]]=[] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">dim_dom</span>[<span class="ruby-identifier">member</span>[<span class="ruby-value str">&quot;dimension&quot;</span>]].<span class="ruby-identifier">nil?</span>
209
210
  <span class="ruby-identifier">dim_dom</span>[<span class="ruby-identifier">member</span>[<span class="ruby-value str">&quot;dimension&quot;</span>]] <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">member</span>[<span class="ruby-value str">&quot;content&quot;</span>]
210
- <span class="ruby-keyword kw">end</span>
211
+ <span class="ruby-keyword kw">end</span>
211
212
  <span class="ruby-keyword kw">end</span>
212
213
  <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">dim_dom</span>
213
214
  <span class="ruby-keyword kw">end</span>
@@ -216,21 +217,21 @@
216
217
  </div>
217
218
  </div>
218
219
 
219
- <div id="method-M000047" class="method-detail">
220
- <a name="M000047"></a>
220
+ <div id="method-M000059" class="method-detail">
221
+ <a name="M000059"></a>
221
222
 
222
223
  <div class="method-heading">
223
- <a href="#M000047" class="method-signature">
224
+ <a href="#M000059" class="method-signature">
224
225
  <span class="method-name">explicit_domains</span><span class="method-args">(dimensions=[])</span>
225
226
  </a>
226
227
  </div>
227
228
 
228
229
  <div class="method-description">
229
230
  <p><a class="source-toggle" href="#"
230
- onclick="toggleCode('M000047-source');return false;">[Source]</a></p>
231
- <div class="method-source-code" id="M000047-source">
231
+ onclick="toggleCode('M000059-source');return false;">[Source]</a></p>
232
+ <div class="method-source-code" id="M000059-source">
232
233
  <pre>
233
- <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 110</span>
234
+ <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 152</span>
234
235
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">explicit_domains</span>(<span class="ruby-identifier">dimensions</span>=[])
235
236
  <span class="ruby-identifier">dom</span> = <span class="ruby-constant">Set</span>.<span class="ruby-identifier">new</span>
236
237
  <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">has_explicit_dimensions?</span>(<span class="ruby-identifier">dimensions</span>)
@@ -240,7 +241,7 @@
240
241
  <span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">dim</span><span class="ruby-operator">==</span><span class="ruby-identifier">member</span>[<span class="ruby-value str">&quot;dimension&quot;</span>]
241
242
  <span class="ruby-identifier">dom</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">member</span>[<span class="ruby-value str">&quot;content&quot;</span>]
242
243
  <span class="ruby-keyword kw">end</span>
243
- <span class="ruby-keyword kw">end</span>
244
+ <span class="ruby-keyword kw">end</span>
244
245
  <span class="ruby-keyword kw">end</span>
245
246
  <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">dom</span>.<span class="ruby-identifier">to_a</span>
246
247
  <span class="ruby-keyword kw">end</span>
@@ -249,35 +250,35 @@
249
250
  </div>
250
251
  </div>
251
252
 
252
- <div id="method-M000045" class="method-detail">
253
- <a name="M000045"></a>
253
+ <div id="method-M000057" class="method-detail">
254
+ <a name="M000057"></a>
254
255
 
255
256
  <div class="method-heading">
256
- <a href="#M000045" class="method-signature">
257
+ <a href="#M000057" class="method-signature">
257
258
  <span class="method-name">has_explicit_dimensions?</span><span class="method-args">(dimensions=[])</span>
258
259
  </a>
259
260
  </div>
260
261
 
261
262
  <div class="method-description">
262
263
  <p><a class="source-toggle" href="#"
263
- onclick="toggleCode('M000045-source');return false;">[Source]</a></p>
264
- <div class="method-source-code" id="M000045-source">
264
+ onclick="toggleCode('M000057-source');return false;">[Source]</a></p>
265
+ <div class="method-source-code" id="M000057-source">
265
266
  <pre>
266
- <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 83</span>
267
+ <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 125</span>
267
268
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_explicit_dimensions?</span>(<span class="ruby-identifier">dimensions</span>=[])
268
269
  <span class="ruby-identifier">dimensions_set</span>=<span class="ruby-constant">Set</span>.<span class="ruby-identifier">new</span>
269
270
  <span class="ruby-identifier">dimensions_set</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">dimensions</span>)
270
271
  <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@segment</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-ivar">@segment</span>[<span class="ruby-value str">&quot;explicitMember&quot;</span>].<span class="ruby-identifier">nil?</span>
271
-
272
- <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">dimensions</span>.<span class="ruby-identifier">size</span><span class="ruby-operator">==</span><span class="ruby-value">0</span>
273
-
272
+
273
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">dimensions</span>.<span class="ruby-identifier">size</span><span class="ruby-operator">==</span><span class="ruby-value">0</span>
274
+
274
275
  <span class="ruby-identifier">dim</span> = <span class="ruby-constant">Set</span>.<span class="ruby-identifier">new</span>
275
276
  <span class="ruby-ivar">@segment</span>[<span class="ruby-value str">&quot;explicitMember&quot;</span>].<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">member</span><span class="ruby-operator">|</span>
276
277
  <span class="ruby-identifier">dim</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">member</span>[<span class="ruby-value str">&quot;dimension&quot;</span>]
277
278
  <span class="ruby-keyword kw">end</span>
278
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">dim</span>.<span class="ruby-identifier">superset?</span>(<span class="ruby-identifier">dimensions_set</span>)
279
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">dim</span>.<span class="ruby-identifier">superset?</span>(<span class="ruby-identifier">dimensions_set</span>)
279
280
  <span class="ruby-keyword kw">end</span>
280
-
281
+
281
282
  <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
282
283
  <span class="ruby-keyword kw">end</span>
283
284
  </pre>
@@ -285,21 +286,44 @@
285
286
  </div>
286
287
  </div>
287
288
 
288
- <div id="method-M000044" class="method-detail">
289
- <a name="M000044"></a>
289
+ <div id="method-M000055" class="method-detail">
290
+ <a name="M000055"></a>
291
+
292
+ <div class="method-heading">
293
+ <a href="#M000055" class="method-signature">
294
+ <span class="method-name">has_segment?</span><span class="method-args">()</span>
295
+ </a>
296
+ </div>
297
+
298
+ <div class="method-description">
299
+ <p><a class="source-toggle" href="#"
300
+ onclick="toggleCode('M000055-source');return false;">[Source]</a></p>
301
+ <div class="method-source-code" id="M000055-source">
302
+ <pre>
303
+ <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 117</span>
304
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_segment?</span>
305
+ (<span class="ruby-keyword kw">not</span> <span class="ruby-ivar">@segment</span>.<span class="ruby-identifier">nil?</span>)
306
+ <span class="ruby-keyword kw">end</span>
307
+ </pre>
308
+ </div>
309
+ </div>
310
+ </div>
311
+
312
+ <div id="method-M000056" class="method-detail">
313
+ <a name="M000056"></a>
290
314
 
291
315
  <div class="method-heading">
292
- <a href="#M000044" class="method-signature">
316
+ <a href="#M000056" class="method-signature">
293
317
  <span class="method-name">to_s</span><span class="method-args">()</span>
294
318
  </a>
295
319
  </div>
296
320
 
297
321
  <div class="method-description">
298
322
  <p><a class="source-toggle" href="#"
299
- onclick="toggleCode('M000044-source');return false;">[Source]</a></p>
300
- <div class="method-source-code" id="M000044-source">
323
+ onclick="toggleCode('M000056-source');return false;">[Source]</a></p>
324
+ <div class="method-source-code" id="M000056-source">
301
325
  <pre>
302
- <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 79</span>
326
+ <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 121</span>
303
327
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
304
328
  <span class="ruby-value str">&quot;Identifier { &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@identifier</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot; } &quot;</span> <span class="ruby-operator">+</span> (<span class="ruby-value str">&quot;, segment [&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">segment</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;]&quot;</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">segment</span>.<span class="ruby-identifier">nil?</span>).<span class="ruby-identifier">to_s</span>
305
329
  <span class="ruby-keyword kw">end</span>