xbrlware-ce 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. data/ReleaseNotes.txt +23 -5
  2. data/doc/classes/Edgar/RSSFeedDownloader.html +2 -2
  3. data/doc/classes/NSAware.html +135 -0
  4. data/doc/classes/Xbrlware.html +1 -6
  5. data/doc/classes/Xbrlware/Context.html +85 -78
  6. data/doc/classes/Xbrlware/Context/Period.html +49 -49
  7. data/doc/classes/Xbrlware/Entity.html +49 -49
  8. data/doc/classes/Xbrlware/Identifier.html +14 -14
  9. data/doc/classes/Xbrlware/Instance.html +173 -98
  10. data/doc/classes/Xbrlware/Item.html +62 -25
  11. data/doc/classes/Xbrlware/Linkbase/CalculationLinkbase.html +41 -3
  12. data/doc/classes/Xbrlware/Linkbase/CalculationLinkbase/Calculation.html +1 -1
  13. data/doc/classes/Xbrlware/Linkbase/CalculationLinkbase/Calculation/CalculationArc.html +1 -1
  14. data/doc/classes/Xbrlware/Linkbase/DefinitionLinkbase.html +43 -3
  15. data/doc/classes/Xbrlware/Linkbase/DefinitionLinkbase/Definition.html +2 -2
  16. data/doc/classes/Xbrlware/Linkbase/DefinitionLinkbase/Definition/DefinitionArc.html +1 -1
  17. data/doc/classes/Xbrlware/Linkbase/LabelLinkbase/Label.html +1 -1
  18. data/doc/classes/Xbrlware/Linkbase/Linkbase/Link/Arc.html +22 -7
  19. data/doc/classes/Xbrlware/Linkbase/PresentationLinkbase.html +41 -3
  20. data/doc/classes/Xbrlware/Linkbase/PresentationLinkbase/Presentation.html +2 -8
  21. data/doc/classes/Xbrlware/Linkbase/PresentationLinkbase/Presentation/PresentationArc.html +1 -1
  22. data/doc/classes/Xbrlware/Taxonomy.html +84 -51
  23. data/doc/classes/Xbrlware/TaxonomyDefintion.html +14 -14
  24. data/doc/classes/Xbrlware/Unit.html +14 -7
  25. data/doc/classes/Xbrlware/Unit/Divide.html +7 -7
  26. data/doc/created.rid +1 -1
  27. data/doc/files/lib/edgar/edgar_data_downloader_rb.html +1 -1
  28. data/doc/files/lib/edgar_rb.html +1 -1
  29. data/doc/files/lib/xbrlware/context_rb.html +1 -1
  30. data/doc/files/lib/xbrlware/instance_rb.html +1 -1
  31. data/doc/files/lib/xbrlware/item_rb.html +1 -1
  32. data/doc/files/lib/xbrlware/linkbase/calculation_linkbase_rb.html +1 -1
  33. data/doc/files/lib/xbrlware/linkbase/definition_linkbase_rb.html +1 -1
  34. data/doc/files/lib/xbrlware/linkbase/label_linkbase_rb.html +1 -1
  35. data/doc/files/lib/xbrlware/linkbase/linkbase_rb.html +1 -1
  36. data/doc/files/lib/xbrlware/linkbase/presentation_linkbase_rb.html +1 -1
  37. data/doc/files/lib/xbrlware/{report_rb.html → ns_aware_rb.html} +10 -4
  38. data/doc/files/lib/xbrlware/taxonomy_rb.html +1 -1
  39. data/doc/files/lib/xbrlware/unit_rb.html +1 -1
  40. data/doc/files/lib/xbrlware/util_rb.html +1 -1
  41. data/doc/files/lib/xbrlware/version_rb.html +1 -1
  42. data/doc/files/lib/xbrlware/xml_parser_rb.html +1 -1
  43. data/doc/files/lib/xbrlware_rb.html +3 -1
  44. data/doc/fr_class_index.html +1 -1
  45. data/doc/fr_file_index.html +1 -1
  46. data/doc/fr_method_index.html +68 -68
  47. data/doc/index.html +2 -2
  48. data/example/callb/calculation_elements.rb +33 -0
  49. data/example/callb/calculation_elements_to_table.rb +62 -0
  50. data/example/case_study/cash_analyzer.rb +27 -0
  51. data/lib/edgar/edgar_data_downloader.rb +6 -6
  52. data/lib/xbrlware.rb +2 -0
  53. data/lib/xbrlware/context.rb +2 -0
  54. data/lib/xbrlware/instance.rb +65 -26
  55. data/lib/xbrlware/item.rb +34 -26
  56. data/lib/xbrlware/linkbase/calculation_linkbase.rb +51 -7
  57. data/lib/xbrlware/linkbase/definition_linkbase.rb +42 -2
  58. data/lib/xbrlware/linkbase/label_linkbase.rb +1 -0
  59. data/lib/xbrlware/linkbase/linkbase.rb +19 -9
  60. data/lib/xbrlware/linkbase/presentation_linkbase.rb +52 -9
  61. data/lib/xbrlware/ns_aware.rb +5 -0
  62. data/lib/xbrlware/taxonomy.rb +7 -0
  63. data/lib/xbrlware/unit.rb +1 -0
  64. data/lib/xbrlware/version.rb +1 -1
  65. data/lib/xbrlware/xml_parser.rb +20 -0
  66. data/test/lib/edgar/edgar_data_downloader_test.rb +1 -1
  67. data/test/lib/edgar/resources/usgaap.rss.xml +3914 -2599
  68. data/test/lib/xbrlware/46_item_test.rb +30 -0
  69. data/test/lib/xbrlware/47_context_test.rb +16 -8
  70. data/test/lib/xbrlware/48_unit_test.rb +10 -0
  71. data/test/lib/xbrlware/instance_test.rb +156 -2
  72. data/test/lib/xbrlware/linkbase/calculation_linkbase_test.rb +5 -5
  73. data/test/lib/xbrlware/linkbase/definition_linkbase_test.rb +2 -2
  74. data/test/lib/xbrlware/linkbase/presentation_linkbase_test.rb +0 -1
  75. data/test/lib/xbrlware/taxonomy_test.rb +28 -0
  76. data/test/lib/xbrlware/xml_parser_test.rb +81 -0
  77. data/test/scratchpad/tooltip.html +10 -0
  78. data/xbrlware-ce.gemspec +2 -0
  79. metadata +36 -22
  80. data/Rakefile.rb +0 -124
  81. data/doc/classes/Xbrlware/Report.html +0 -352
  82. data/lib/xbrlware/report.rb +0 -277
  83. data/test/lib/xbrlware/resources/report_test_xbrl_files/cal.xml +0 -219
  84. data/test/lib/xbrlware/resources/report_test_xbrl_files/def.xml +0 -186
  85. data/test/lib/xbrlware/resources/report_test_xbrl_files/instance.xml +0 -5822
  86. data/test/lib/xbrlware/resources/report_test_xbrl_files/lab.xml +0 -782
  87. data/test/lib/xbrlware/resources/report_test_xbrl_files/pre.xml +0 -485
  88. data/test/lib/xbrlware/resources/report_test_xbrl_files/report/report_index.html +0 -62
  89. data/test/lib/xbrlware/resources/report_test_xbrl_files/taxonomy.xsd +0 -178
  90. data/xbrlware.iml +0 -30
data/ReleaseNotes.txt CHANGED
@@ -1,17 +1,36 @@
1
1
  bitstat (http://www.bitstat.com) xbrlware release notes
2
2
  =======================================================
3
+ Release 1.1.1
4
+ Bugs
5
+ * [xbrlware-ce-dev-9] : item_all method added to Xbrlware::Instnace
6
+ * [xbrlware-ce-dev-10] : Xbrlware::Instnace, inspect method returns object id
7
+ * [xbrlware-ce-dev-11] : "INF" support added to Xbrlware::Item
8
+ * [xbrlware-ce-dev-12] : better linkbase support (support chained links)
9
+ * [xbrlware-ce-dev-13] : Xbrlware::Instance.new now takes, XBRL content as string apart from XBRL instance file
10
+
11
+ Changes
12
+ * [xbrlware-ce-dev-14] : is_value_numeric added to Xbrlware::Item
13
+ * [xbrlware-ce-dev-15] : ns (namespace) & nsp (namespace prefix) added to Xbrlware::Item
14
+ * [xbrlware-ce-dev-16] : When no item found "item" method of instance will return empty array instead of null
15
+ * [xbrlware-ee-2] : Reports generation extracted as plugin. To use Xbrlware::Reports, have to include
16
+ require 'xbrlware/reports/sec'
17
+ * [xbrlware-ee-3] : "timelines" method added linkbase links which will return periods of linkbase elements
18
+ * [xbrlware-ee-4] : RDF/Semantic support added. See, http://code.google.com/p/xbrlware/wiki/RDFSupport
19
+ * [xbrlware-ee-5] : item_by_vocab method added to Xbrlware::Instance.
20
+ * [xbrlware-ee-6] : More fine grained report formatting options.
3
21
 
22
+
4
23
  Release 1.1.0
5
24
  Bugs
6
25
  * [xbrlware-ce-dev-4] : entity_details method of instance.rb is specific to US & not applicable to other countries
7
26
  * [xbrlware-ce-dev-5] : When linkbase documents mentioned in taxonomy are not available, ignore them than raising error
8
- * [xbrlware-ee] : In reports, should not format entity_details like CIK, Outstanding shares and other entity details as numbers
9
- : In reports, provide custom option to format item values
27
+ * [xbrlware-ee] : Reports, should not format entity_details like CIK, Outstanding shares and other entity details as numbers
28
+ : Reports, provide custom option to format item values
10
29
  : Make HTML reports social friendly ( to share in facebook, myspace etc)
11
30
  Changes
12
31
  * [xbrlware-ce-dev-6] : context.period changed to return Context::Period object. If you are accessing period of
13
- context as "context.period", change that to "context.period.value"
14
- * [xbrlware-ce-dev-7] : New methods added to period, is_instant?, is_duration? and is_forever?
32
+ a context as "context.period", change that to "context.period.value"
33
+ * [xbrlware-ce-dev-7] : is_instant?, is_duration? and is_forever? methods added to Context::Period
15
34
  * [xbrlware-ce-dev-8] : Instant and duration period should return Date instead of String
16
35
  Features
17
36
  * [xbrlware-ce-dev-9] : has_scenario? added to context and has_segment? added to context.entity
@@ -22,4 +41,3 @@ Release 1.0.3
22
41
  * [xbrlware-ce-dev-2] : error raised when xbrl linkbase document has HTML element  
23
42
  * [xbrlware-ce-dev-3] : file_grep not working as intended when reference linkbase file is present.
24
43
 
25
-
@@ -200,8 +200,8 @@ href="RSSFeedDownloader.html#M000092">download</a>), download_to (where to
200
200
  <span class="ruby-identifier">data_dir</span>=<span class="ruby-identifier">data_dir</span><span class="ruby-operator">+</span><span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">SEPARATOR</span><span class="ruby-operator">+</span><span class="ruby-identifier">item</span>[<span class="ruby-value str">&quot;xbrlFiling&quot;</span>][<span class="ruby-value">0</span>][<span class="ruby-value str">&quot;accessionNumber&quot;</span>][<span class="ruby-value">0</span>][<span class="ruby-value str">&quot;content&quot;</span>]
201
201
  <span class="ruby-identifier">mkdir</span>(<span class="ruby-identifier">data_dir</span>)
202
202
  <span class="ruby-identifier">files</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">file</span><span class="ruby-operator">|</span>
203
- <span class="ruby-identifier">file_content</span>=<span class="ruby-identifier">open</span>(<span class="ruby-identifier">file</span>[<span class="ruby-value str">&quot;url&quot;</span>]).<span class="ruby-identifier">read</span>
204
- <span class="ruby-identifier">dump_to_file</span>(<span class="ruby-identifier">data_dir</span><span class="ruby-operator">+</span><span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">SEPARATOR</span><span class="ruby-operator">+</span><span class="ruby-identifier">file</span>[<span class="ruby-value str">&quot;file&quot;</span>], <span class="ruby-identifier">file_content</span>)
203
+ <span class="ruby-identifier">file_content</span>=<span class="ruby-identifier">open</span>(<span class="ruby-identifier">file</span>[<span class="ruby-value str">&quot;edgar:url&quot;</span>]).<span class="ruby-identifier">read</span>
204
+ <span class="ruby-identifier">dump_to_file</span>(<span class="ruby-identifier">data_dir</span><span class="ruby-operator">+</span><span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">SEPARATOR</span><span class="ruby-operator">+</span><span class="ruby-identifier">file</span>[<span class="ruby-value str">&quot;edgar:file&quot;</span>], <span class="ruby-identifier">file_content</span>)
205
205
  <span class="ruby-keyword kw">end</span>
206
206
  <span class="ruby-keyword kw">end</span>
207
207
  <span class="ruby-keyword kw">end</span>
@@ -0,0 +1,135 @@
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>Module: NSAware</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>Module</strong></td>
53
+ <td class="class-name-in-header">NSAware</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../files/lib/xbrlware/ns_aware_rb.html">
59
+ lib/xbrlware/ns_aware.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ </table>
66
+ </div>
67
+ <!-- banner header -->
68
+
69
+ <div id="bodyContent">
70
+
71
+
72
+
73
+ <div id="contextContent">
74
+
75
+ <div id="description">
76
+ <p>
77
+ namespace aware
78
+ </p>
79
+
80
+ </div>
81
+
82
+
83
+ </div>
84
+
85
+
86
+ </div>
87
+
88
+
89
+ <!-- if includes -->
90
+
91
+ <div id="section">
92
+
93
+
94
+
95
+
96
+
97
+ <div id="attribute-list">
98
+ <h3 class="section-bar">Attributes</h3>
99
+
100
+ <div class="name-list">
101
+ <table>
102
+ <tr class="top-aligned-row context-row">
103
+ <td class="context-item-name">ns</td>
104
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
105
+ <td class="context-item-desc">
106
+ namespace and namespace prefix
107
+
108
+ </td>
109
+ </tr>
110
+ <tr class="top-aligned-row context-row">
111
+ <td class="context-item-name">nsp</td>
112
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
113
+ <td class="context-item-desc">
114
+ namespace and namespace prefix
115
+
116
+ </td>
117
+ </tr>
118
+ </table>
119
+ </div>
120
+ </div>
121
+
122
+
123
+
124
+ <!-- if method_list -->
125
+
126
+
127
+ </div>
128
+
129
+
130
+ <div id="validator-badges">
131
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
132
+ </div>
133
+
134
+ </body>
135
+ </html>
@@ -86,10 +86,6 @@
86
86
  <a href="../files/lib/xbrlware/constants_rb.html">
87
87
  lib/xbrlware/constants.rb
88
88
  </a>
89
- <br />
90
- <a href="../files/lib/xbrlware/report_rb.html">
91
- lib/xbrlware/report.rb
92
- </a>
93
89
  <br />
94
90
  <a href="../files/lib/xbrlware/instance_rb.html">
95
91
  lib/xbrlware/instance.rb
@@ -198,7 +194,6 @@ Class <a href="Xbrlware/Entity.html" class="link">Xbrlware::Entity</a><br />
198
194
  Class <a href="Xbrlware/Identifier.html" class="link">Xbrlware::Identifier</a><br />
199
195
  Class <a href="Xbrlware/Instance.html" class="link">Xbrlware::Instance</a><br />
200
196
  Class <a href="Xbrlware/Item.html" class="link">Xbrlware::Item</a><br />
201
- Class <a href="Xbrlware/Report.html" class="link">Xbrlware::Report</a><br />
202
197
  Class <a href="Xbrlware/Taxonomy.html" class="link">Xbrlware::Taxonomy</a><br />
203
198
  Class <a href="Xbrlware/TaxonomyDefintion.html" class="link">Xbrlware::TaxonomyDefintion</a><br />
204
199
  Class <a href="Xbrlware/Unit.html" class="link">Xbrlware::Unit</a><br />
@@ -213,7 +208,7 @@ Class <a href="Xbrlware/Unit.html" class="link">Xbrlware::Unit</a><br />
213
208
  <tr class="top-aligned-row context-row">
214
209
  <td class="context-item-name">VERSION</td>
215
210
  <td>=</td>
216
- <td class="context-item-value">&quot;1.1.0&quot;</td>
211
+ <td class="context-item-value">&quot;1.1.1&quot;</td>
217
212
  </tr>
218
213
  </table>
219
214
  </div>
@@ -94,19 +94,19 @@ 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="#M000042">dimensions</a>&nbsp;&nbsp;
98
- <a href="#M000046">dimensions_domains</a>&nbsp;&nbsp;
99
- <a href="#M000044">domains</a>&nbsp;&nbsp;
100
- <a href="#M000037">eql?</a>&nbsp;&nbsp;
101
- <a href="#M000041">explicit_dimensions</a>&nbsp;&nbsp;
102
- <a href="#M000045">explicit_dimensions_domains</a>&nbsp;&nbsp;
103
- <a href="#M000043">explicit_domains</a>&nbsp;&nbsp;
104
- <a href="#M000040">has_dimensions?</a>&nbsp;&nbsp;
105
- <a href="#M000039">has_explicit_dimensions?</a>&nbsp;&nbsp;
106
- <a href="#M000035">has_scenario?</a>&nbsp;&nbsp;
107
- <a href="#M000038">hash</a>&nbsp;&nbsp;
108
- <a href="#M000034">new</a>&nbsp;&nbsp;
109
- <a href="#M000036">to_s</a>&nbsp;&nbsp;
97
+ <a href="#M000039">dimensions</a>&nbsp;&nbsp;
98
+ <a href="#M000043">dimensions_domains</a>&nbsp;&nbsp;
99
+ <a href="#M000041">domains</a>&nbsp;&nbsp;
100
+ <a href="#M000034">eql?</a>&nbsp;&nbsp;
101
+ <a href="#M000038">explicit_dimensions</a>&nbsp;&nbsp;
102
+ <a href="#M000042">explicit_dimensions_domains</a>&nbsp;&nbsp;
103
+ <a href="#M000040">explicit_domains</a>&nbsp;&nbsp;
104
+ <a href="#M000037">has_dimensions?</a>&nbsp;&nbsp;
105
+ <a href="#M000036">has_explicit_dimensions?</a>&nbsp;&nbsp;
106
+ <a href="#M000032">has_scenario?</a>&nbsp;&nbsp;
107
+ <a href="#M000035">hash</a>&nbsp;&nbsp;
108
+ <a href="#M000031">new</a>&nbsp;&nbsp;
109
+ <a href="#M000033">to_s</a>&nbsp;&nbsp;
110
110
  </div>
111
111
  </div>
112
112
 
@@ -114,6 +114,13 @@ instance page on xbrlware wiki</a> for more details.
114
114
 
115
115
 
116
116
  <!-- if includes -->
117
+ <div id="includes">
118
+ <h3 class="section-bar">Included Modules</h3>
119
+
120
+ <div id="includes-list">
121
+ <span class="include-name"><a href="../NSAware.html">NSAware</a></span>
122
+ </div>
123
+ </div>
117
124
 
118
125
  <div id="section">
119
126
 
@@ -175,21 +182,21 @@ instance page on xbrlware wiki</a> for more details.
175
182
  <div id="methods">
176
183
  <h3 class="section-bar">Public Class methods</h3>
177
184
 
178
- <div id="method-M000034" class="method-detail">
179
- <a name="M000034"></a>
185
+ <div id="method-M000031" class="method-detail">
186
+ <a name="M000031"></a>
180
187
 
181
188
  <div class="method-heading">
182
- <a href="#M000034" class="method-signature">
189
+ <a href="#M000031" class="method-signature">
183
190
  <span class="method-name">new</span><span class="method-args">(id, entity, period, scenario=nil)</span>
184
191
  </a>
185
192
  </div>
186
193
 
187
194
  <div class="method-description">
188
195
  <p><a class="source-toggle" href="#"
189
- onclick="toggleCode('M000034-source');return false;">[Source]</a></p>
190
- <div class="method-source-code" id="M000034-source">
196
+ onclick="toggleCode('M000031-source');return false;">[Source]</a></p>
197
+ <div class="method-source-code" id="M000031-source">
191
198
  <pre>
192
- <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 59</span>
199
+ <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 61</span>
193
200
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">id</span>, <span class="ruby-identifier">entity</span>, <span class="ruby-identifier">period</span>, <span class="ruby-identifier">scenario</span>=<span class="ruby-keyword kw">nil</span>)
194
201
  <span class="ruby-ivar">@id</span> = <span class="ruby-identifier">id</span>
195
202
  <span class="ruby-ivar">@entity</span> = <span class="ruby-identifier">entity</span>
@@ -203,8 +210,8 @@ instance page on xbrlware wiki</a> for more details.
203
210
 
204
211
  <h3 class="section-bar">Public Instance methods</h3>
205
212
 
206
- <div id="method-M000042" class="method-detail">
207
- <a name="M000042"></a>
213
+ <div id="method-M000039" class="method-detail">
214
+ <a name="M000039"></a>
208
215
 
209
216
  <div class="method-heading">
210
217
  <span class="method-name">dimensions</span><span class="method-args">()</span>
@@ -212,13 +219,13 @@ instance page on xbrlware wiki</a> for more details.
212
219
 
213
220
  <div class="method-description">
214
221
  <p>
215
- Alias for <a href="Context.html#M000041">explicit_dimensions</a>
222
+ Alias for <a href="Context.html#M000038">explicit_dimensions</a>
216
223
  </p>
217
224
  </div>
218
225
  </div>
219
226
 
220
- <div id="method-M000046" class="method-detail">
221
- <a name="M000046"></a>
227
+ <div id="method-M000043" class="method-detail">
228
+ <a name="M000043"></a>
222
229
 
223
230
  <div class="method-heading">
224
231
  <span class="method-name">dimensions_domains</span><span class="method-args">()</span>
@@ -226,13 +233,13 @@ Alias for <a href="Context.html#M000041">explicit_dimensions</a>
226
233
 
227
234
  <div class="method-description">
228
235
  <p>
229
- Alias for <a href="Context.html#M000045">explicit_dimensions_domains</a>
236
+ Alias for <a href="Context.html#M000042">explicit_dimensions_domains</a>
230
237
  </p>
231
238
  </div>
232
239
  </div>
233
240
 
234
- <div id="method-M000044" class="method-detail">
235
- <a name="M000044"></a>
241
+ <div id="method-M000041" class="method-detail">
242
+ <a name="M000041"></a>
236
243
 
237
244
  <div class="method-heading">
238
245
  <span class="method-name">domains</span><span class="method-args">(dimensions=[])</span>
@@ -240,26 +247,26 @@ Alias for <a href="Context.html#M000045">explicit_dimensions_domains</a>
240
247
 
241
248
  <div class="method-description">
242
249
  <p>
243
- Alias for <a href="Context.html#M000043">explicit_domains</a>
250
+ Alias for <a href="Context.html#M000040">explicit_domains</a>
244
251
  </p>
245
252
  </div>
246
253
  </div>
247
254
 
248
- <div id="method-M000037" class="method-detail">
249
- <a name="M000037"></a>
255
+ <div id="method-M000034" class="method-detail">
256
+ <a name="M000034"></a>
250
257
 
251
258
  <div class="method-heading">
252
- <a href="#M000037" class="method-signature">
259
+ <a href="#M000034" class="method-signature">
253
260
  <span class="method-name">eql?</span><span class="method-args">(o)</span>
254
261
  </a>
255
262
  </div>
256
263
 
257
264
  <div class="method-description">
258
265
  <p><a class="source-toggle" href="#"
259
- onclick="toggleCode('M000037-source');return false;">[Source]</a></p>
260
- <div class="method-source-code" id="M000037-source">
266
+ onclick="toggleCode('M000034-source');return false;">[Source]</a></p>
267
+ <div class="method-source-code" id="M000034-source">
261
268
  <pre>
262
- <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 74</span>
269
+ <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 76</span>
263
270
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">eql?</span>(<span class="ruby-identifier">o</span>)
264
271
  <span class="ruby-identifier">o</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Context</span>) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-ivar">@id</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">o</span>.<span class="ruby-identifier">id</span>
265
272
  <span class="ruby-keyword kw">end</span>
@@ -268,21 +275,21 @@ Alias for <a href="Context.html#M000043">explicit_domains</a>
268
275
  </div>
269
276
  </div>
270
277
 
271
- <div id="method-M000041" class="method-detail">
272
- <a name="M000041"></a>
278
+ <div id="method-M000038" class="method-detail">
279
+ <a name="M000038"></a>
273
280
 
274
281
  <div class="method-heading">
275
- <a href="#M000041" class="method-signature">
282
+ <a href="#M000038" class="method-signature">
276
283
  <span class="method-name">explicit_dimensions</span><span class="method-args">()</span>
277
284
  </a>
278
285
  </div>
279
286
 
280
287
  <div class="method-description">
281
288
  <p><a class="source-toggle" href="#"
282
- onclick="toggleCode('M000041-source');return false;">[Source]</a></p>
283
- <div class="method-source-code" id="M000041-source">
289
+ onclick="toggleCode('M000038-source');return false;">[Source]</a></p>
290
+ <div class="method-source-code" id="M000038-source">
284
291
  <pre>
285
- <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 89</span>
292
+ <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 91</span>
286
293
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">explicit_dimensions</span>
287
294
  <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@entity</span>.<span class="ruby-identifier">explicit_dimensions</span>
288
295
  <span class="ruby-keyword kw">end</span>
@@ -291,21 +298,21 @@ Alias for <a href="Context.html#M000043">explicit_domains</a>
291
298
  </div>
292
299
  </div>
293
300
 
294
- <div id="method-M000045" class="method-detail">
295
- <a name="M000045"></a>
301
+ <div id="method-M000042" class="method-detail">
302
+ <a name="M000042"></a>
296
303
 
297
304
  <div class="method-heading">
298
- <a href="#M000045" class="method-signature">
305
+ <a href="#M000042" class="method-signature">
299
306
  <span class="method-name">explicit_dimensions_domains</span><span class="method-args">()</span>
300
307
  </a>
301
308
  </div>
302
309
 
303
310
  <div class="method-description">
304
311
  <p><a class="source-toggle" href="#"
305
- onclick="toggleCode('M000045-source');return false;">[Source]</a></p>
306
- <div class="method-source-code" id="M000045-source">
312
+ onclick="toggleCode('M000042-source');return false;">[Source]</a></p>
313
+ <div class="method-source-code" id="M000042-source">
307
314
  <pre>
308
- <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 101</span>
315
+ <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 103</span>
309
316
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">explicit_dimensions_domains</span>
310
317
  <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@entity</span>.<span class="ruby-identifier">explicit_dimensions_domains</span>
311
318
  <span class="ruby-keyword kw">end</span>
@@ -314,21 +321,21 @@ Alias for <a href="Context.html#M000043">explicit_domains</a>
314
321
  </div>
315
322
  </div>
316
323
 
317
- <div id="method-M000043" class="method-detail">
318
- <a name="M000043"></a>
324
+ <div id="method-M000040" class="method-detail">
325
+ <a name="M000040"></a>
319
326
 
320
327
  <div class="method-heading">
321
- <a href="#M000043" class="method-signature">
328
+ <a href="#M000040" class="method-signature">
322
329
  <span class="method-name">explicit_domains</span><span class="method-args">(dimensions=[])</span>
323
330
  </a>
324
331
  </div>
325
332
 
326
333
  <div class="method-description">
327
334
  <p><a class="source-toggle" href="#"
328
- onclick="toggleCode('M000043-source');return false;">[Source]</a></p>
329
- <div class="method-source-code" id="M000043-source">
335
+ onclick="toggleCode('M000040-source');return false;">[Source]</a></p>
336
+ <div class="method-source-code" id="M000040-source">
330
337
  <pre>
331
- <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 95</span>
338
+ <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 97</span>
332
339
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">explicit_domains</span>(<span class="ruby-identifier">dimensions</span>=[])
333
340
  <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@entity</span>.<span class="ruby-identifier">explicit_domains</span>(<span class="ruby-identifier">dimensions</span>)
334
341
  <span class="ruby-keyword kw">end</span>
@@ -337,8 +344,8 @@ Alias for <a href="Context.html#M000043">explicit_domains</a>
337
344
  </div>
338
345
  </div>
339
346
 
340
- <div id="method-M000040" class="method-detail">
341
- <a name="M000040"></a>
347
+ <div id="method-M000037" class="method-detail">
348
+ <a name="M000037"></a>
342
349
 
343
350
  <div class="method-heading">
344
351
  <span class="method-name">has_dimensions?</span><span class="method-args">(dimensions=[])</span>
@@ -351,21 +358,21 @@ Alias for has_explicit_dimensions?
351
358
  </div>
352
359
  </div>
353
360
 
354
- <div id="method-M000039" class="method-detail">
355
- <a name="M000039"></a>
361
+ <div id="method-M000036" class="method-detail">
362
+ <a name="M000036"></a>
356
363
 
357
364
  <div class="method-heading">
358
- <a href="#M000039" class="method-signature">
365
+ <a href="#M000036" class="method-signature">
359
366
  <span class="method-name">has_explicit_dimensions?</span><span class="method-args">(dimensions=[])</span>
360
367
  </a>
361
368
  </div>
362
369
 
363
370
  <div class="method-description">
364
371
  <p><a class="source-toggle" href="#"
365
- onclick="toggleCode('M000039-source');return false;">[Source]</a></p>
366
- <div class="method-source-code" id="M000039-source">
372
+ onclick="toggleCode('M000036-source');return false;">[Source]</a></p>
373
+ <div class="method-source-code" id="M000036-source">
367
374
  <pre>
368
- <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 82</span>
375
+ <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 84</span>
369
376
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_explicit_dimensions?</span>(<span class="ruby-identifier">dimensions</span>=[])
370
377
  <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@entity</span>.<span class="ruby-identifier">has_explicit_dimensions?</span>(<span class="ruby-identifier">dimensions</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@entity</span>.<span class="ruby-identifier">nil?</span>
371
378
  <span class="ruby-keyword kw">false</span>
@@ -375,21 +382,21 @@ Alias for has_explicit_dimensions?
375
382
  </div>
376
383
  </div>
377
384
 
378
- <div id="method-M000035" class="method-detail">
379
- <a name="M000035"></a>
385
+ <div id="method-M000032" class="method-detail">
386
+ <a name="M000032"></a>
380
387
 
381
388
  <div class="method-heading">
382
- <a href="#M000035" class="method-signature">
389
+ <a href="#M000032" class="method-signature">
383
390
  <span class="method-name">has_scenario?</span><span class="method-args">()</span>
384
391
  </a>
385
392
  </div>
386
393
 
387
394
  <div class="method-description">
388
395
  <p><a class="source-toggle" href="#"
389
- onclick="toggleCode('M000035-source');return false;">[Source]</a></p>
390
- <div class="method-source-code" id="M000035-source">
396
+ onclick="toggleCode('M000032-source');return false;">[Source]</a></p>
397
+ <div class="method-source-code" id="M000032-source">
391
398
  <pre>
392
- <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 66</span>
399
+ <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 68</span>
393
400
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_scenario?</span>
394
401
  (<span class="ruby-keyword kw">not</span> <span class="ruby-ivar">@scenario</span>.<span class="ruby-identifier">nil?</span>)
395
402
  <span class="ruby-keyword kw">end</span>
@@ -398,21 +405,21 @@ Alias for has_explicit_dimensions?
398
405
  </div>
399
406
  </div>
400
407
 
401
- <div id="method-M000038" class="method-detail">
402
- <a name="M000038"></a>
408
+ <div id="method-M000035" class="method-detail">
409
+ <a name="M000035"></a>
403
410
 
404
411
  <div class="method-heading">
405
- <a href="#M000038" class="method-signature">
412
+ <a href="#M000035" class="method-signature">
406
413
  <span class="method-name">hash</span><span class="method-args">()</span>
407
414
  </a>
408
415
  </div>
409
416
 
410
417
  <div class="method-description">
411
418
  <p><a class="source-toggle" href="#"
412
- onclick="toggleCode('M000038-source');return false;">[Source]</a></p>
413
- <div class="method-source-code" id="M000038-source">
419
+ onclick="toggleCode('M000035-source');return false;">[Source]</a></p>
420
+ <div class="method-source-code" id="M000035-source">
414
421
  <pre>
415
- <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 78</span>
422
+ <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 80</span>
416
423
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">hash</span>
417
424
  <span class="ruby-ivar">@id</span>.<span class="ruby-identifier">hash</span>
418
425
  <span class="ruby-keyword kw">end</span>
@@ -421,21 +428,21 @@ Alias for has_explicit_dimensions?
421
428
  </div>
422
429
  </div>
423
430
 
424
- <div id="method-M000036" class="method-detail">
425
- <a name="M000036"></a>
431
+ <div id="method-M000033" class="method-detail">
432
+ <a name="M000033"></a>
426
433
 
427
434
  <div class="method-heading">
428
- <a href="#M000036" class="method-signature">
435
+ <a href="#M000033" class="method-signature">
429
436
  <span class="method-name">to_s</span><span class="method-args">()</span>
430
437
  </a>
431
438
  </div>
432
439
 
433
440
  <div class="method-description">
434
441
  <p><a class="source-toggle" href="#"
435
- onclick="toggleCode('M000036-source');return false;">[Source]</a></p>
436
- <div class="method-source-code" id="M000036-source">
442
+ onclick="toggleCode('M000033-source');return false;">[Source]</a></p>
443
+ <div class="method-source-code" id="M000033-source">
437
444
  <pre>
438
- <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 70</span>
445
+ <span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 72</span>
439
446
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
440
447
  <span class="ruby-value str">&quot;Id [&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">id</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;], Entity { &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@entity</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot; }, period [&quot;</span><span class="ruby-operator">+</span><span class="ruby-identifier">period</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;, scenario [&quot;</span><span class="ruby-operator">+</span><span class="ruby-identifier">scenario</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">scenario</span>.<span class="ruby-identifier">nil?</span>).<span class="ruby-identifier">to_s</span>
441
448
  <span class="ruby-keyword kw">end</span>