kwartz 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (169) hide show
  1. data/COPYING +340 -0
  2. data/ChangeLog +103 -0
  3. data/README.txt +37 -0
  4. data/bin/kwartz +12 -0
  5. data/doc-api/classes/Kwartz.html +218 -0
  6. data/doc-api/classes/Kwartz/Assertion.html +140 -0
  7. data/doc-api/classes/Kwartz/AssertionError.html +148 -0
  8. data/doc-api/classes/Kwartz/AttrInfo.html +320 -0
  9. data/doc-api/classes/Kwartz/BaseError.html +206 -0
  10. data/doc-api/classes/Kwartz/BaseTranslator.html +331 -0
  11. data/doc-api/classes/Kwartz/CharacterType.html +212 -0
  12. data/doc-api/classes/Kwartz/CommandOptionError.html +154 -0
  13. data/doc-api/classes/Kwartz/CommandOptions.html +374 -0
  14. data/doc-api/classes/Kwartz/Config.html +150 -0
  15. data/doc-api/classes/Kwartz/ConvertError.html +191 -0
  16. data/doc-api/classes/Kwartz/Converter.html +252 -0
  17. data/doc-api/classes/Kwartz/CssStyleParser.html +483 -0
  18. data/doc-api/classes/Kwartz/DocumentRuleset.html +369 -0
  19. data/doc-api/classes/Kwartz/ElementExpander.html +325 -0
  20. data/doc-api/classes/Kwartz/ElementInfo.html +312 -0
  21. data/doc-api/classes/Kwartz/ElementRuleset.html +582 -0
  22. data/doc-api/classes/Kwartz/EperlHandler.html +338 -0
  23. data/doc-api/classes/Kwartz/EperlTranslator.html +167 -0
  24. data/doc-api/classes/Kwartz/ErubisHandler.html +113 -0
  25. data/doc-api/classes/Kwartz/ErubisTranslator.html +168 -0
  26. data/doc-api/classes/Kwartz/ErubyHandler.html +337 -0
  27. data/doc-api/classes/Kwartz/ErubyTranslator.html +167 -0
  28. data/doc-api/classes/Kwartz/ExpandStatement.html +227 -0
  29. data/doc-api/classes/Kwartz/Expression.html +119 -0
  30. data/doc-api/classes/Kwartz/Handler.html +558 -0
  31. data/doc-api/classes/Kwartz/JstlHandler.html +657 -0
  32. data/doc-api/classes/Kwartz/JstlTranslator.html +226 -0
  33. data/doc-api/classes/Kwartz/KwartzError.html +146 -0
  34. data/doc-api/classes/Kwartz/Main.html +384 -0
  35. data/doc-api/classes/Kwartz/NativeExpression.html +236 -0
  36. data/doc-api/classes/Kwartz/NativeStatement.html +254 -0
  37. data/doc-api/classes/Kwartz/Node.html +156 -0
  38. data/doc-api/classes/Kwartz/ParseError.html +148 -0
  39. data/doc-api/classes/Kwartz/PhpHandler.html +333 -0
  40. data/doc-api/classes/Kwartz/PhpTranslator.html +194 -0
  41. data/doc-api/classes/Kwartz/PresentationLogicParser.html +830 -0
  42. data/doc-api/classes/Kwartz/PrintStatement.html +221 -0
  43. data/doc-api/classes/Kwartz/RailsHandler.html +587 -0
  44. data/doc-api/classes/Kwartz/RailsTranslator.html +167 -0
  45. data/doc-api/classes/Kwartz/RubyStyleParser.html +558 -0
  46. data/doc-api/classes/Kwartz/Ruleset.html +117 -0
  47. data/doc-api/classes/Kwartz/Statement.html +119 -0
  48. data/doc-api/classes/Kwartz/StrutsTranslator.html +190 -0
  49. data/doc-api/classes/Kwartz/TagInfo.html +314 -0
  50. data/doc-api/classes/Kwartz/TextConverter.html +270 -0
  51. data/doc-api/classes/Kwartz/Translator.html +318 -0
  52. data/doc-api/classes/Test.html +107 -0
  53. data/doc-api/classes/Test/Unit.html +101 -0
  54. data/doc-api/created.rid +1 -0
  55. data/doc-api/files/__/README_txt.html +150 -0
  56. data/doc-api/files/kwartz/assert_rb.html +114 -0
  57. data/doc-api/files/kwartz/binding/eperl_rb.html +116 -0
  58. data/doc-api/files/kwartz/binding/erubis_rb.html +116 -0
  59. data/doc-api/files/kwartz/binding/eruby_rb.html +115 -0
  60. data/doc-api/files/kwartz/binding/jstl_rb.html +116 -0
  61. data/doc-api/files/kwartz/binding/php_rb.html +116 -0
  62. data/doc-api/files/kwartz/binding/rails_rb.html +115 -0
  63. data/doc-api/files/kwartz/binding/struts_rb.html +117 -0
  64. data/doc-api/files/kwartz/config_rb.html +107 -0
  65. data/doc-api/files/kwartz/converter_rb.html +119 -0
  66. data/doc-api/files/kwartz/error_rb.html +107 -0
  67. data/doc-api/files/kwartz/main_rb.html +124 -0
  68. data/doc-api/files/kwartz/node_rb.html +114 -0
  69. data/doc-api/files/kwartz/parser_rb.html +117 -0
  70. data/doc-api/files/kwartz/translator_rb.html +115 -0
  71. data/doc-api/files/kwartz/util/assert-text-equal_rb.html +115 -0
  72. data/doc-api/files/kwartz/util/testcase-helper_rb.html +115 -0
  73. data/doc-api/files/kwartz_rb.html +120 -0
  74. data/doc-api/fr_class_index.html +75 -0
  75. data/doc-api/fr_file_index.html +45 -0
  76. data/doc-api/fr_method_index.html +216 -0
  77. data/doc-api/index.html +24 -0
  78. data/doc-api/rdoc-style.css +208 -0
  79. data/doc/docstyle.css +188 -0
  80. data/doc/p-pattern.html +1207 -0
  81. data/doc/reference.html +3396 -0
  82. data/doc/users-guide.html +1670 -0
  83. data/examples/breadcrumbs1/Makefile +15 -0
  84. data/examples/breadcrumbs1/breadcrumbs.eruby.plogic +27 -0
  85. data/examples/breadcrumbs1/breadcrumbs.html +12 -0
  86. data/examples/breadcrumbs1/breadcrumbs.jstl.plogic +28 -0
  87. data/examples/breadcrumbs1/breadcrumbs.php.plogic +26 -0
  88. data/examples/breadcrumbs1/main.php +12 -0
  89. data/examples/breadcrumbs1/main.rb +12 -0
  90. data/examples/breadcrumbs2/Makefile +15 -0
  91. data/examples/breadcrumbs2/breadcrumbs.eruby.plogic +22 -0
  92. data/examples/breadcrumbs2/breadcrumbs.html +14 -0
  93. data/examples/breadcrumbs2/breadcrumbs.jstl.plogic +24 -0
  94. data/examples/breadcrumbs2/breadcrumbs.php.plogic +23 -0
  95. data/examples/breadcrumbs2/main.php +12 -0
  96. data/examples/breadcrumbs2/main.rb +12 -0
  97. data/examples/pagelayout/Makefile +47 -0
  98. data/examples/pagelayout/content.eruby.plogic +44 -0
  99. data/examples/pagelayout/content.jstl.plogic +36 -0
  100. data/examples/pagelayout/content.php.plogic +37 -0
  101. data/examples/pagelayout/content1.html +36 -0
  102. data/examples/pagelayout/content2.html +29 -0
  103. data/examples/pagelayout/design.css +40 -0
  104. data/examples/pagelayout/layout.html +50 -0
  105. data/examples/pagelayout/main.php +55 -0
  106. data/examples/pagelayout/main.rb +77 -0
  107. data/examples/pagelayout/menu.eruby.plogic +14 -0
  108. data/examples/pagelayout/menu.html +13 -0
  109. data/examples/pagelayout/menu.jstl.plogic +14 -0
  110. data/examples/pagelayout/menu.php.plogic +14 -0
  111. data/examples/rails1/Makefile +36 -0
  112. data/examples/rails1/README +19 -0
  113. data/examples/rails1/application_helper.rb +31 -0
  114. data/examples/rails1/edit.html +28 -0
  115. data/examples/rails1/edit.plogic +10 -0
  116. data/examples/rails1/form.html +52 -0
  117. data/examples/rails1/form.plogic +33 -0
  118. data/examples/rails1/layout.plogic +15 -0
  119. data/examples/rails1/link_to.plogic +19 -0
  120. data/examples/rails1/list.html +48 -0
  121. data/examples/rails1/list.plogic +28 -0
  122. data/examples/rails1/new.html +27 -0
  123. data/examples/rails1/new.plogic +10 -0
  124. data/examples/rails1/reader.plogic +29 -0
  125. data/examples/rails1/show.html +40 -0
  126. data/examples/rails1/show.plogic +4 -0
  127. data/examples/rails1/writer.plogic +8 -0
  128. data/examples/table1/Makefile +15 -0
  129. data/examples/table1/main.php +11 -0
  130. data/examples/table1/main.rb +11 -0
  131. data/examples/table1/table1.eruby.plogic +21 -0
  132. data/examples/table1/table1.html +16 -0
  133. data/examples/table1/table1.jstl.plogic +21 -0
  134. data/examples/table1/table1.php.plogic +22 -0
  135. data/kwartz.gemspec +55 -0
  136. data/lib/kwartz.rb +13 -0
  137. data/lib/kwartz/assert.rb +31 -0
  138. data/lib/kwartz/binding/eperl.rb +166 -0
  139. data/lib/kwartz/binding/erubis.rb +61 -0
  140. data/lib/kwartz/binding/eruby.rb +164 -0
  141. data/lib/kwartz/binding/jstl.rb +334 -0
  142. data/lib/kwartz/binding/php.rb +167 -0
  143. data/lib/kwartz/binding/rails.rb +295 -0
  144. data/lib/kwartz/binding/struts.rb +109 -0
  145. data/lib/kwartz/config.rb +28 -0
  146. data/lib/kwartz/converter.rb +920 -0
  147. data/lib/kwartz/error.rb +41 -0
  148. data/lib/kwartz/main.rb +464 -0
  149. data/lib/kwartz/node.rb +454 -0
  150. data/lib/kwartz/parser.rb +903 -0
  151. data/lib/kwartz/translator.rb +153 -0
  152. data/lib/kwartz/util/assert-text-equal.rb +44 -0
  153. data/lib/kwartz/util/testcase-helper.rb +112 -0
  154. data/setup.rb +1331 -0
  155. data/test/test-compile.rb +36 -0
  156. data/test/test-compile.yaml +178 -0
  157. data/test/test-converter.rb +34 -0
  158. data/test/test-converter.yaml +127 -0
  159. data/test/test-directives.rb +32 -0
  160. data/test/test-directives.yaml +1411 -0
  161. data/test/test-main.rb +464 -0
  162. data/test/test-parser.rb +54 -0
  163. data/test/test-parser.yaml +394 -0
  164. data/test/test-rails.rb +28 -0
  165. data/test/test-rails.yaml +301 -0
  166. data/test/test-ruleset.rb +36 -0
  167. data/test/test-ruleset.yaml +804 -0
  168. data/test/test.rb +44 -0
  169. metadata +236 -0
@@ -0,0 +1,369 @@
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: Kwartz::DocumentRuleset</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">Kwartz::DocumentRuleset</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/kwartz/node_rb.html">
59
+ kwartz/node.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
+ <a href="Ruleset.html">
69
+ Ruleset
70
+ </a>
71
+ </td>
72
+ </tr>
73
+ </table>
74
+ </div>
75
+ <!-- banner header -->
76
+
77
+ <div id="bodyContent">
78
+
79
+
80
+
81
+ <div id="contextContent">
82
+
83
+ <div id="description">
84
+ <p>
85
+ represents &#8216;DOUMENT { &#8230; }&#8217; entry in presentation logic
86
+ file
87
+ </p>
88
+
89
+ </div>
90
+
91
+
92
+ </div>
93
+
94
+ <div id="method-list">
95
+ <h3 class="section-bar">Methods</h3>
96
+
97
+ <div class="name-list">
98
+ <a href="#M000016">_inspect</a>&nbsp;&nbsp;
99
+ <a href="#M000010">new</a>&nbsp;&nbsp;
100
+ <a href="#M000014">set_begin</a>&nbsp;&nbsp;
101
+ <a href="#M000015">set_end</a>&nbsp;&nbsp;
102
+ <a href="#M000013">set_fixture</a>&nbsp;&nbsp;
103
+ <a href="#M000011">set_global</a>&nbsp;&nbsp;
104
+ <a href="#M000012">set_local</a>&nbsp;&nbsp;
105
+ </div>
106
+ </div>
107
+
108
+ </div>
109
+
110
+
111
+ <!-- if includes -->
112
+
113
+ <div id="section">
114
+
115
+
116
+
117
+
118
+
119
+ <div id="attribute-list">
120
+ <h3 class="section-bar">Attributes</h3>
121
+
122
+ <div class="name-list">
123
+ <table>
124
+ <tr class="top-aligned-row context-row">
125
+ <td class="context-item-name">begin</td>
126
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
127
+ <td class="context-item-desc"></td>
128
+ </tr>
129
+ <tr class="top-aligned-row context-row">
130
+ <td class="context-item-name">end</td>
131
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
132
+ <td class="context-item-desc"></td>
133
+ </tr>
134
+ <tr class="top-aligned-row context-row">
135
+ <td class="context-item-name">fixture</td>
136
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
137
+ <td class="context-item-desc"></td>
138
+ </tr>
139
+ <tr class="top-aligned-row context-row">
140
+ <td class="context-item-name">global</td>
141
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
142
+ <td class="context-item-desc"></td>
143
+ </tr>
144
+ <tr class="top-aligned-row context-row">
145
+ <td class="context-item-name">local</td>
146
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
147
+ <td class="context-item-desc"></td>
148
+ </tr>
149
+ <tr class="top-aligned-row context-row">
150
+ <td class="context-item-name">name</td>
151
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
152
+ <td class="context-item-desc"></td>
153
+ </tr>
154
+ </table>
155
+ </div>
156
+ </div>
157
+
158
+
159
+
160
+ <!-- if method_list -->
161
+ <div id="methods">
162
+ <h3 class="section-bar">Public Class methods</h3>
163
+
164
+ <div id="method-M000010" class="method-detail">
165
+ <a name="M000010"></a>
166
+
167
+ <div class="method-heading">
168
+ <a href="#M000010" class="method-signature">
169
+ <span class="method-name">new</span><span class="method-args">(name='DOCUMENT')</span>
170
+ </a>
171
+ </div>
172
+
173
+ <div class="method-description">
174
+ <p><a class="source-toggle" href="#"
175
+ onclick="toggleCode('M000010-source');return false;">[Source]</a></p>
176
+ <div class="method-source-code" id="M000010-source">
177
+ <pre>
178
+ <span class="ruby-comment cmt"># File kwartz/node.rb, line 371</span>
179
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span>=<span class="ruby-value str">'DOCUMENT'</span>)
180
+ <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span>
181
+ <span class="ruby-keyword kw">end</span>
182
+ </pre>
183
+ </div>
184
+ </div>
185
+ </div>
186
+
187
+ <h3 class="section-bar">Public Instance methods</h3>
188
+
189
+ <div id="method-M000016" class="method-detail">
190
+ <a name="M000016"></a>
191
+
192
+ <div class="method-heading">
193
+ <a href="#M000016" class="method-signature">
194
+ <span class="method-name">_inspect</span><span class="method-args">(indent=0)</span>
195
+ </a>
196
+ </div>
197
+
198
+ <div class="method-description">
199
+ <p><a class="source-toggle" href="#"
200
+ onclick="toggleCode('M000016-source');return false;">[Source]</a></p>
201
+ <div class="method-source-code" id="M000016-source">
202
+ <pre>
203
+ <span class="ruby-comment cmt"># File kwartz/node.rb, line 417</span>
204
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">_inspect</span>(<span class="ruby-identifier">indent</span>=<span class="ruby-value">0</span>)
205
+ <span class="ruby-identifier">space</span> = <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">indent</span>
206
+ <span class="ruby-identifier">sb</span> = []
207
+ <span class="ruby-identifier">sb</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">space</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;name: #{@name.inspect}\n&quot;</span>
208
+ <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@global</span>
209
+ <span class="ruby-identifier">sb</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">space</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;global:\n&quot;</span>
210
+ <span class="ruby-ivar">@global</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">item</span><span class="ruby-operator">|</span>
211
+ <span class="ruby-identifier">sb</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">space</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot; - #{item}\n&quot;</span>
212
+ <span class="ruby-keyword kw">end</span>
213
+ <span class="ruby-keyword kw">end</span>
214
+ <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@local</span>
215
+ <span class="ruby-identifier">sb</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">space</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;local:\n&quot;</span>
216
+ <span class="ruby-ivar">@local</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">item</span><span class="ruby-operator">|</span>
217
+ <span class="ruby-identifier">sb</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">space</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot; - #{item}\n&quot;</span>
218
+ <span class="ruby-keyword kw">end</span>
219
+ <span class="ruby-keyword kw">end</span>
220
+ <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@begin</span>
221
+ <span class="ruby-identifier">sb</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">space</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;begin:\n&quot;</span>
222
+ <span class="ruby-ivar">@begin</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">stmt</span><span class="ruby-operator">|</span>
223
+ <span class="ruby-identifier">sb</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">space</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot; - #{stmt._inspect}\n&quot;</span>
224
+ <span class="ruby-keyword kw">end</span>
225
+ <span class="ruby-keyword kw">end</span>
226
+ <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@end</span>
227
+ <span class="ruby-identifier">sb</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">space</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;end:\n&quot;</span>
228
+ <span class="ruby-ivar">@end</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">stmt</span><span class="ruby-operator">|</span>
229
+ <span class="ruby-identifier">sb</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">space</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot; - #{stmt._inspect}\n&quot;</span>
230
+ <span class="ruby-keyword kw">end</span>
231
+ <span class="ruby-keyword kw">end</span>
232
+ <span class="ruby-comment cmt">#</span>
233
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">sb</span>.<span class="ruby-identifier">join</span>
234
+ <span class="ruby-keyword kw">end</span>
235
+ </pre>
236
+ </div>
237
+ </div>
238
+ </div>
239
+
240
+ <div id="method-M000014" class="method-detail">
241
+ <a name="M000014"></a>
242
+
243
+ <div class="method-heading">
244
+ <a href="#M000014" class="method-signature">
245
+ <span class="method-name">set_begin</span><span class="method-args">(str)</span>
246
+ </a>
247
+ </div>
248
+
249
+ <div class="method-description">
250
+ <p><a class="source-toggle" href="#"
251
+ onclick="toggleCode('M000014-source');return false;">[Source]</a></p>
252
+ <div class="method-source-code" id="M000014-source">
253
+ <pre>
254
+ <span class="ruby-comment cmt"># File kwartz/node.rb, line 388</span>
255
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_begin</span>(<span class="ruby-identifier">str</span>)
256
+ <span class="ruby-identifier">stmt_list</span> = <span class="ruby-identifier">_parse_stmts</span>(<span class="ruby-identifier">str</span>)
257
+ <span class="ruby-ivar">@begin</span> = <span class="ruby-identifier">stmt_list</span>
258
+ <span class="ruby-keyword kw">end</span>
259
+ </pre>
260
+ </div>
261
+ </div>
262
+ </div>
263
+
264
+ <div id="method-M000015" class="method-detail">
265
+ <a name="M000015"></a>
266
+
267
+ <div class="method-heading">
268
+ <a href="#M000015" class="method-signature">
269
+ <span class="method-name">set_end</span><span class="method-args">(str)</span>
270
+ </a>
271
+ </div>
272
+
273
+ <div class="method-description">
274
+ <p><a class="source-toggle" href="#"
275
+ onclick="toggleCode('M000015-source');return false;">[Source]</a></p>
276
+ <div class="method-source-code" id="M000015-source">
277
+ <pre>
278
+ <span class="ruby-comment cmt"># File kwartz/node.rb, line 393</span>
279
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_end</span>(<span class="ruby-identifier">str</span>)
280
+ <span class="ruby-identifier">stmt_list</span> = <span class="ruby-identifier">_parse_stmts</span>(<span class="ruby-identifier">str</span>)
281
+ <span class="ruby-ivar">@end</span> = <span class="ruby-identifier">stmt_list</span>
282
+ <span class="ruby-keyword kw">end</span>
283
+ </pre>
284
+ </div>
285
+ </div>
286
+ </div>
287
+
288
+ <div id="method-M000013" class="method-detail">
289
+ <a name="M000013"></a>
290
+
291
+ <div class="method-heading">
292
+ <a href="#M000013" class="method-signature">
293
+ <span class="method-name">set_fixture</span><span class="method-args">(str)</span>
294
+ </a>
295
+ </div>
296
+
297
+ <div class="method-description">
298
+ <p><a class="source-toggle" href="#"
299
+ onclick="toggleCode('M000013-source');return false;">[Source]</a></p>
300
+ <div class="method-source-code" id="M000013-source">
301
+ <pre>
302
+ <span class="ruby-comment cmt"># File kwartz/node.rb, line 384</span>
303
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_fixture</span>(<span class="ruby-identifier">str</span>)
304
+ <span class="ruby-ivar">@fixture</span> = <span class="ruby-constant">NativeStatement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">str</span>.<span class="ruby-identifier">chomp</span>, <span class="ruby-keyword kw">nil</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">str</span>
305
+ <span class="ruby-keyword kw">end</span>
306
+ </pre>
307
+ </div>
308
+ </div>
309
+ </div>
310
+
311
+ <div id="method-M000011" class="method-detail">
312
+ <a name="M000011"></a>
313
+
314
+ <div class="method-heading">
315
+ <a href="#M000011" class="method-signature">
316
+ <span class="method-name">set_global</span><span class="method-args">(list)</span>
317
+ </a>
318
+ </div>
319
+
320
+ <div class="method-description">
321
+ <p><a class="source-toggle" href="#"
322
+ onclick="toggleCode('M000011-source');return false;">[Source]</a></p>
323
+ <div class="method-source-code" id="M000011-source">
324
+ <pre>
325
+ <span class="ruby-comment cmt"># File kwartz/node.rb, line 376</span>
326
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_global</span>(<span class="ruby-identifier">list</span>)
327
+ <span class="ruby-ivar">@global</span> = <span class="ruby-identifier">list</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">list</span>
328
+ <span class="ruby-keyword kw">end</span>
329
+ </pre>
330
+ </div>
331
+ </div>
332
+ </div>
333
+
334
+ <div id="method-M000012" class="method-detail">
335
+ <a name="M000012"></a>
336
+
337
+ <div class="method-heading">
338
+ <a href="#M000012" class="method-signature">
339
+ <span class="method-name">set_local</span><span class="method-args">(list)</span>
340
+ </a>
341
+ </div>
342
+
343
+ <div class="method-description">
344
+ <p><a class="source-toggle" href="#"
345
+ onclick="toggleCode('M000012-source');return false;">[Source]</a></p>
346
+ <div class="method-source-code" id="M000012-source">
347
+ <pre>
348
+ <span class="ruby-comment cmt"># File kwartz/node.rb, line 380</span>
349
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_local</span>(<span class="ruby-identifier">list</span>)
350
+ <span class="ruby-ivar">@local</span> = <span class="ruby-identifier">list</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">list</span>
351
+ <span class="ruby-keyword kw">end</span>
352
+ </pre>
353
+ </div>
354
+ </div>
355
+ </div>
356
+
357
+
358
+ </div>
359
+
360
+
361
+ </div>
362
+
363
+
364
+ <div id="validator-badges">
365
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
366
+ </div>
367
+
368
+ </body>
369
+ </html>
@@ -0,0 +1,325 @@
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: Kwartz::ElementExpander</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">Kwartz::ElementExpander</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/kwartz/converter_rb.html">
59
+ kwartz/converter.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
+ .[abstract] expand <a href="ExpandStatement.html">ExpandStatement</a> and
78
+ <a href="ElementInfo.html">ElementInfo</a>
79
+ </p>
80
+ <p>
81
+ <a href="Handler.html">Handler</a> class includes this module.
82
+ </p>
83
+
84
+ </div>
85
+
86
+
87
+ </div>
88
+
89
+ <div id="method-list">
90
+ <h3 class="section-bar">Methods</h3>
91
+
92
+ <div class="name-list">
93
+ <a href="#M000008">expand_element_info</a>&nbsp;&nbsp;
94
+ <a href="#M000009">expand_statement</a>&nbsp;&nbsp;
95
+ <a href="#M000007">get_element_info</a>&nbsp;&nbsp;
96
+ <a href="#M000006">get_element_ruleset</a>&nbsp;&nbsp;
97
+ </div>
98
+ </div>
99
+
100
+ </div>
101
+
102
+
103
+ <!-- if includes -->
104
+ <div id="includes">
105
+ <h3 class="section-bar">Included Modules</h3>
106
+
107
+ <div id="includes-list">
108
+ <span class="include-name"><a href="Assertion.html">Assertion</a></span>
109
+ </div>
110
+ </div>
111
+
112
+ <div id="section">
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+ <!-- if method_list -->
122
+ <div id="methods">
123
+ <h3 class="section-bar">Public Instance methods</h3>
124
+
125
+ <div id="method-M000008" class="method-detail">
126
+ <a name="M000008"></a>
127
+
128
+ <div class="method-heading">
129
+ <a href="#M000008" class="method-signature">
130
+ <span class="method-name">expand_element_info</span><span class="method-args">(elem_info, stmt_list, content_only=false)</span>
131
+ </a>
132
+ </div>
133
+
134
+ <div class="method-description">
135
+ <p>
136
+ expand <a href="ElementInfo.html">ElementInfo</a>
137
+ </p>
138
+ <p><a class="source-toggle" href="#"
139
+ onclick="toggleCode('M000008-source');return false;">[Source]</a></p>
140
+ <div class="method-source-code" id="M000008-source">
141
+ <pre>
142
+ <span class="ruby-comment cmt"># File kwartz/converter.rb, line 340</span>
143
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">expand_element_info</span>(<span class="ruby-identifier">elem_info</span>, <span class="ruby-identifier">stmt_list</span>, <span class="ruby-identifier">content_only</span>=<span class="ruby-keyword kw">false</span>)
144
+ <span class="ruby-comment cmt">#elem_ruleset = @ruleset_table[elem_info.name]</span>
145
+ <span class="ruby-identifier">elem_ruleset</span> = <span class="ruby-identifier">get_element_ruleset</span>(<span class="ruby-identifier">elem_info</span>.<span class="ruby-identifier">name</span>)
146
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">elem_ruleset</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-operator">!</span><span class="ruby-identifier">elem_info</span>.<span class="ruby-identifier">merged?</span>
147
+ <span class="ruby-identifier">elem_info</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">elem_ruleset</span>)
148
+ <span class="ruby-keyword kw">end</span>
149
+ <span class="ruby-identifier">logic</span> = <span class="ruby-identifier">content_only</span> <span class="ruby-value">? </span>[ <span class="ruby-constant">ExpandStatement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:cont</span>, <span class="ruby-identifier">elem_info</span>.<span class="ruby-identifier">name</span>) ] <span class="ruby-operator">:</span> <span class="ruby-identifier">elem_info</span>.<span class="ruby-identifier">logic</span>
150
+ <span class="ruby-identifier">logic</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">stmt</span><span class="ruby-operator">|</span>
151
+ <span class="ruby-identifier">expand_statement</span>(<span class="ruby-identifier">stmt</span>, <span class="ruby-identifier">stmt_list</span>, <span class="ruby-identifier">elem_info</span>)
152
+ <span class="ruby-keyword kw">end</span>
153
+ <span class="ruby-comment cmt">#if content_only</span>
154
+ <span class="ruby-comment cmt"># stmt = ExpandStatement.new(:cont, elem_info.name)</span>
155
+ <span class="ruby-comment cmt"># expand_statement(stmt, stmt_list, elem_info)</span>
156
+ <span class="ruby-comment cmt">#else</span>
157
+ <span class="ruby-comment cmt"># element.logic.each do |stmt|</span>
158
+ <span class="ruby-comment cmt"># expand_statement(stmt, stmt_list, elem_info)</span>
159
+ <span class="ruby-comment cmt"># end</span>
160
+ <span class="ruby-comment cmt">#end</span>
161
+ <span class="ruby-keyword kw">end</span>
162
+ </pre>
163
+ </div>
164
+ </div>
165
+ </div>
166
+
167
+ <div id="method-M000009" class="method-detail">
168
+ <a name="M000009"></a>
169
+
170
+ <div class="method-heading">
171
+ <a href="#M000009" class="method-signature">
172
+ <span class="method-name">expand_statement</span><span class="method-args">(stmt, stmt_list, elem_info)</span>
173
+ </a>
174
+ </div>
175
+
176
+ <div class="method-description">
177
+ <p>
178
+ expand <a href="ExpandStatement.html">ExpandStatement</a>
179
+ </p>
180
+ <p><a class="source-toggle" href="#"
181
+ onclick="toggleCode('M000009-source');return false;">[Source]</a></p>
182
+ <div class="method-source-code" id="M000009-source">
183
+ <pre>
184
+ <span class="ruby-comment cmt"># File kwartz/converter.rb, line 362</span>
185
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">expand_statement</span>(<span class="ruby-identifier">stmt</span>, <span class="ruby-identifier">stmt_list</span>, <span class="ruby-identifier">elem_info</span>)
186
+
187
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">stmt</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">ExpandStatement</span>)
188
+ <span class="ruby-identifier">e</span> = <span class="ruby-identifier">elem_info</span>
189
+
190
+ <span class="ruby-comment cmt">## delete dummy '&lt;span&gt;' tag</span>
191
+ <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@delspan</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">stag_info</span>.<span class="ruby-identifier">tagname</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'span'</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">attr_info</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">append_exprs</span>.<span class="ruby-identifier">nil?</span>
192
+ <span class="ruby-identifier">e</span>.<span class="ruby-identifier">stag_info</span>.<span class="ruby-identifier">tagname</span> = <span class="ruby-identifier">e</span>.<span class="ruby-identifier">etag_info</span>.<span class="ruby-identifier">tagname</span> = <span class="ruby-keyword kw">nil</span>
193
+ <span class="ruby-keyword kw">end</span>
194
+
195
+ <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">stmt</span>.<span class="ruby-identifier">kind</span>
196
+
197
+ <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:stag</span>
198
+ <span class="ruby-identifier">assert</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">elem_info</span>
199
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">stag_expr</span>
200
+ <span class="ruby-identifier">assert</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">stag_expr</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">NativeExpression</span>)
201
+ <span class="ruby-identifier">stmt_list</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">build_print_expr_stmt</span>(<span class="ruby-identifier">e</span>.<span class="ruby-identifier">stag_expr</span>, <span class="ruby-identifier">e</span>.<span class="ruby-identifier">stag_info</span>, <span class="ruby-keyword kw">nil</span>)
202
+ <span class="ruby-keyword kw">else</span>
203
+ <span class="ruby-identifier">stmt_list</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">build_print_stmt</span>(<span class="ruby-identifier">e</span>.<span class="ruby-identifier">stag_info</span>, <span class="ruby-identifier">e</span>.<span class="ruby-identifier">attr_info</span>, <span class="ruby-identifier">e</span>.<span class="ruby-identifier">append_exprs</span>)
204
+ <span class="ruby-keyword kw">end</span>
205
+
206
+ <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:etag</span>
207
+ <span class="ruby-identifier">assert</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">elem_info</span>
208
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">etag_expr</span>
209
+ <span class="ruby-identifier">assert</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">etag_expr</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">NativeExpression</span>)
210
+ <span class="ruby-identifier">stmt_list</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">build_print_expr_stmt</span>(<span class="ruby-identifier">e</span>.<span class="ruby-identifier">etag_expr</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">e</span>.<span class="ruby-identifier">etag_info</span>)
211
+ <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">etag_info</span> <span class="ruby-comment cmt"># e.etag_info is nil when &lt;br&gt;, &lt;input&gt;, &lt;hr&gt;, &lt;img&gt;, &lt;meta&gt;</span>
212
+ <span class="ruby-identifier">stmt_list</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">build_print_stmt</span>(<span class="ruby-identifier">e</span>.<span class="ruby-identifier">etag_info</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>)
213
+ <span class="ruby-keyword kw">end</span>
214
+
215
+ <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:cont</span>
216
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">cont_expr</span>
217
+ <span class="ruby-identifier">assert</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">cont_expr</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">NativeExpression</span>)
218
+ <span class="ruby-identifier">stmt_list</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">PrintStatement</span>.<span class="ruby-identifier">new</span>([<span class="ruby-identifier">e</span>.<span class="ruby-identifier">cont_expr</span>])
219
+ <span class="ruby-keyword kw">else</span>
220
+ <span class="ruby-identifier">elem_info</span>.<span class="ruby-identifier">cont_stmts</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">cont_stmt</span><span class="ruby-operator">|</span>
221
+ <span class="ruby-identifier">expand_statement</span>(<span class="ruby-identifier">cont_stmt</span>, <span class="ruby-identifier">stmt_list</span>, <span class="ruby-keyword kw">nil</span>)
222
+ <span class="ruby-keyword kw">end</span>
223
+ <span class="ruby-keyword kw">end</span>
224
+
225
+ <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:elem</span>
226
+ <span class="ruby-identifier">assert</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">elem_info</span>
227
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">elem_expr</span>
228
+ <span class="ruby-identifier">assert</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">elem_expr</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">NativeExpression</span>)
229
+ <span class="ruby-identifier">stmt_list</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">build_print_expr_stmt</span>(<span class="ruby-identifier">e</span>.<span class="ruby-identifier">elem_expr</span>, <span class="ruby-identifier">e</span>.<span class="ruby-identifier">stag_info</span>, <span class="ruby-identifier">e</span>.<span class="ruby-identifier">etag_info</span>)
230
+ <span class="ruby-keyword kw">else</span>
231
+ <span class="ruby-identifier">stmt</span>.<span class="ruby-identifier">kind</span> = <span class="ruby-identifier">:stag</span>
232
+ <span class="ruby-identifier">expand_statement</span>(<span class="ruby-identifier">stmt</span>, <span class="ruby-identifier">stmt_list</span>, <span class="ruby-identifier">elem_info</span>)
233
+ <span class="ruby-identifier">stmt</span>.<span class="ruby-identifier">kind</span> = <span class="ruby-identifier">:cont</span>
234
+ <span class="ruby-identifier">expand_statement</span>(<span class="ruby-identifier">stmt</span>, <span class="ruby-identifier">stmt_list</span>, <span class="ruby-identifier">elem_info</span>)
235
+ <span class="ruby-identifier">stmt</span>.<span class="ruby-identifier">kind</span> = <span class="ruby-identifier">:etag</span>
236
+ <span class="ruby-identifier">expand_statement</span>(<span class="ruby-identifier">stmt</span>, <span class="ruby-identifier">stmt_list</span>, <span class="ruby-identifier">elem_info</span>)
237
+ <span class="ruby-identifier">stmt</span>.<span class="ruby-identifier">kind</span> = <span class="ruby-identifier">:elem</span>
238
+ <span class="ruby-keyword kw">end</span>
239
+
240
+ <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:element</span>, <span class="ruby-identifier">:content</span>
241
+ <span class="ruby-identifier">content_only</span> = <span class="ruby-identifier">stmt</span>.<span class="ruby-identifier">kind</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:content</span>
242
+ <span class="ruby-comment cmt">#elem_info = @elements[stmt.name]</span>
243
+ <span class="ruby-identifier">elem_info</span> = <span class="ruby-identifier">get_element_info</span>(<span class="ruby-identifier">stmt</span>.<span class="ruby-identifier">name</span>)
244
+ <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">elem_info</span>
245
+ <span class="ruby-identifier">raise</span> <span class="ruby-identifier">convert_error</span>(<span class="ruby-node">&quot;element '#{stmt.name}' is not found.&quot;</span>, <span class="ruby-keyword kw">nil</span>)
246
+ <span class="ruby-keyword kw">end</span>
247
+ <span class="ruby-identifier">expand_element_info</span>(<span class="ruby-identifier">elem_info</span>, <span class="ruby-identifier">stmt_list</span>, <span class="ruby-identifier">content_only</span>)
248
+
249
+ <span class="ruby-keyword kw">else</span>
250
+ <span class="ruby-identifier">assert</span>
251
+ <span class="ruby-keyword kw">end</span> <span class="ruby-comment cmt">#case</span>
252
+ <span class="ruby-keyword kw">else</span>
253
+ <span class="ruby-identifier">stmt_list</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">stmt</span>
254
+ <span class="ruby-keyword kw">end</span> <span class="ruby-comment cmt">#if</span>
255
+ <span class="ruby-keyword kw">end</span>
256
+ </pre>
257
+ </div>
258
+ </div>
259
+ </div>
260
+
261
+ <div id="method-M000007" class="method-detail">
262
+ <a name="M000007"></a>
263
+
264
+ <div class="method-heading">
265
+ <a href="#M000007" class="method-signature">
266
+ <span class="method-name">get_element_info</span><span class="method-args">(name)</span>
267
+ </a>
268
+ </div>
269
+
270
+ <div class="method-description">
271
+ <p>
272
+ .[abstract] get <a href="ElementInfo.html">ElementInfo</a>
273
+ </p>
274
+ <p><a class="source-toggle" href="#"
275
+ onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
276
+ <div class="method-source-code" id="M000007-source">
277
+ <pre>
278
+ <span class="ruby-comment cmt"># File kwartz/converter.rb, line 334</span>
279
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_element_info</span>(<span class="ruby-identifier">name</span>)
280
+ <span class="ruby-identifier">not_implemented</span>
281
+ <span class="ruby-keyword kw">end</span>
282
+ </pre>
283
+ </div>
284
+ </div>
285
+ </div>
286
+
287
+ <div id="method-M000006" class="method-detail">
288
+ <a name="M000006"></a>
289
+
290
+ <div class="method-heading">
291
+ <a href="#M000006" class="method-signature">
292
+ <span class="method-name">get_element_ruleset</span><span class="method-args">(name)</span>
293
+ </a>
294
+ </div>
295
+
296
+ <div class="method-description">
297
+ <p>
298
+ .[abstract] get <a href="ElementRuleset.html">ElementRuleset</a>
299
+ </p>
300
+ <p><a class="source-toggle" href="#"
301
+ onclick="toggleCode('M000006-source');return false;">[Source]</a></p>
302
+ <div class="method-source-code" id="M000006-source">
303
+ <pre>
304
+ <span class="ruby-comment cmt"># File kwartz/converter.rb, line 328</span>
305
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_element_ruleset</span>(<span class="ruby-identifier">name</span>)
306
+ <span class="ruby-identifier">not_implemented</span>
307
+ <span class="ruby-keyword kw">end</span>
308
+ </pre>
309
+ </div>
310
+ </div>
311
+ </div>
312
+
313
+
314
+ </div>
315
+
316
+
317
+ </div>
318
+
319
+
320
+ <div id="validator-badges">
321
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
322
+ </div>
323
+
324
+ </body>
325
+ </html>