kwartz 3.0.0 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. data/ChangeLog +36 -1
  2. data/LGPL +504 -0
  3. data/README.txt +16 -2
  4. data/bin/kwartz +1 -1
  5. data/doc-api/classes/Kwartz.html +47 -1
  6. data/doc-api/classes/Kwartz/Assertion.html +6 -6
  7. data/doc-api/classes/Kwartz/AssertionError.html +6 -6
  8. data/doc-api/classes/Kwartz/AttrInfo.html +42 -42
  9. data/doc-api/classes/Kwartz/BaseError.html +12 -12
  10. data/doc-api/classes/Kwartz/BaseTranslator.html +210 -43
  11. data/doc-api/classes/Kwartz/CharacterType.html +24 -24
  12. data/doc-api/classes/Kwartz/CommandOptionError.html +7 -7
  13. data/doc-api/classes/Kwartz/CommandOptions.html +49 -49
  14. data/doc-api/classes/Kwartz/Config.html +6 -1
  15. data/doc-api/classes/Kwartz/ConvertError.html +14 -14
  16. data/doc-api/classes/Kwartz/Converter.html +31 -30
  17. data/doc-api/classes/Kwartz/CssStyleParser.html +79 -57
  18. data/doc-api/classes/Kwartz/Defun.html +313 -0
  19. data/doc-api/classes/Kwartz/DocumentRuleset.html +58 -58
  20. data/doc-api/classes/Kwartz/ElementExpander.html +32 -32
  21. data/doc-api/classes/Kwartz/ElementInfo.html +29 -29
  22. data/doc-api/classes/Kwartz/ElementRuleset.html +126 -96
  23. data/doc-api/classes/Kwartz/EperlHandler.html +108 -84
  24. data/doc-api/classes/Kwartz/EperlTranslator.html +7 -7
  25. data/doc-api/classes/Kwartz/ErubisHandler.html +2 -2
  26. data/doc-api/classes/Kwartz/ErubisTranslator.html +8 -8
  27. data/doc-api/classes/Kwartz/ErubyHandler.html +2 -220
  28. data/doc-api/classes/Kwartz/ErubyTranslator.html +7 -7
  29. data/doc-api/classes/Kwartz/ExpandStatement.html +20 -20
  30. data/doc-api/classes/Kwartz/Handler.html +122 -117
  31. data/doc-api/classes/Kwartz/HandlerArgument.html +215 -0
  32. data/doc-api/classes/Kwartz/Helper.html +112 -0
  33. data/doc-api/classes/Kwartz/Helper/ActionViewHelper.html +221 -0
  34. data/doc-api/classes/Kwartz/Helper/RailsTemplate.html +630 -0
  35. data/doc-api/classes/Kwartz/JstlHandler.html +208 -193
  36. data/doc-api/classes/Kwartz/JstlTranslator.html +15 -15
  37. data/doc-api/classes/Kwartz/KwartzError.html +6 -6
  38. data/doc-api/classes/Kwartz/Main.html +39 -23
  39. data/doc-api/classes/Kwartz/NativeExpression.html +18 -18
  40. data/doc-api/classes/Kwartz/NativeStatement.html +25 -25
  41. data/doc-api/classes/Kwartz/Node.html +6 -6
  42. data/doc-api/classes/Kwartz/PIErubisHandler.html +113 -0
  43. data/doc-api/classes/Kwartz/PIErubisTranslator.html +200 -0
  44. data/doc-api/classes/Kwartz/ParseError.html +6 -6
  45. data/doc-api/classes/Kwartz/PhpHandler.html +102 -83
  46. data/doc-api/classes/Kwartz/PhpTranslator.html +14 -14
  47. data/doc-api/classes/Kwartz/PresentationLogicParser.html +136 -128
  48. data/doc-api/classes/Kwartz/PrintStatement.html +19 -19
  49. data/doc-api/classes/Kwartz/RailsHandler.html +121 -118
  50. data/doc-api/classes/Kwartz/RailsTranslator.html +7 -7
  51. data/doc-api/classes/Kwartz/RubyHandler.html +349 -0
  52. data/doc-api/classes/Kwartz/RubyStyleParser.html +85 -85
  53. data/doc-api/classes/Kwartz/RubyTranslator.html +218 -0
  54. data/doc-api/classes/Kwartz/StatementHelper.html +479 -0
  55. data/doc-api/classes/Kwartz/StrutsTranslator.html +12 -12
  56. data/doc-api/classes/Kwartz/TagInfo.html +28 -28
  57. data/doc-api/classes/Kwartz/TextConverter.html +28 -28
  58. data/doc-api/classes/Kwartz/Translator.html +42 -42
  59. data/doc-api/classes/Kwartz/Util.html +284 -0
  60. data/doc-api/created.rid +1 -1
  61. data/doc-api/files/__/README_txt.html +30 -3
  62. data/doc-api/files/kwartz/assert_rb.html +1 -1
  63. data/doc-api/files/kwartz/binding/eperl_rb.html +2 -2
  64. data/doc-api/files/kwartz/binding/erubis_rb.html +3 -3
  65. data/doc-api/files/kwartz/binding/eruby_rb.html +3 -2
  66. data/doc-api/files/kwartz/binding/jstl_rb.html +2 -2
  67. data/doc-api/files/kwartz/binding/php_rb.html +2 -2
  68. data/doc-api/files/kwartz/binding/pierubis_rb.html +116 -0
  69. data/doc-api/files/kwartz/binding/rails_rb.html +2 -2
  70. data/doc-api/files/kwartz/binding/ruby_rb.html +115 -0
  71. data/doc-api/files/kwartz/binding/struts_rb.html +1 -1
  72. data/doc-api/files/kwartz/config_rb.html +2 -2
  73. data/doc-api/files/kwartz/converter_rb.html +3 -2
  74. data/doc-api/files/kwartz/defun_rb.html +116 -0
  75. data/doc-api/files/kwartz/error_rb.html +1 -1
  76. data/doc-api/files/kwartz/helper/rails_rb.html +123 -0
  77. data/doc-api/files/kwartz/main_rb.html +5 -2
  78. data/doc-api/files/kwartz/node_rb.html +2 -2
  79. data/doc-api/files/kwartz/parser_rb.html +2 -2
  80. data/doc-api/files/kwartz/translator_rb.html +2 -2
  81. data/doc-api/files/kwartz/util/assert-text-equal_rb.html +1 -1
  82. data/doc-api/files/kwartz/util/testcase-helper_rb.html +2 -2
  83. data/doc-api/files/kwartz/util_rb.html +107 -0
  84. data/doc-api/files/kwartz_rb.html +3 -2
  85. data/doc-api/fr_class_index.html +11 -0
  86. data/doc-api/fr_file_index.html +5 -0
  87. data/doc-api/fr_method_index.html +242 -190
  88. data/doc/p-pattern.html +94 -94
  89. data/doc/reference.html +847 -612
  90. data/doc/users-guide.html +744 -241
  91. data/examples/rails1/README +2 -2
  92. data/examples/rails1/application_helper.rb +2 -27
  93. data/examples/rails1/link_to.plogic +5 -5
  94. data/examples/rails1/list.plogic +2 -2
  95. data/examples/rails2/app/controllers/application.rb +14 -0
  96. data/examples/rails2/app/controllers/groups_controller.rb +47 -0
  97. data/examples/rails2/app/controllers/members_controller.rb +56 -0
  98. data/examples/rails2/app/helpers/application_helper.rb +6 -0
  99. data/examples/rails2/app/helpers/groups_helper.rb +2 -0
  100. data/examples/rails2/app/helpers/members_helper.rb +2 -0
  101. data/examples/rails2/app/models/group.rb +2 -0
  102. data/examples/rails2/app/models/member.rb +3 -0
  103. data/examples/rails2/app/views/groups/_form.html +30 -0
  104. data/examples/rails2/app/views/groups/_form.plogic +11 -0
  105. data/examples/rails2/app/views/groups/_link.plogic +19 -0
  106. data/examples/rails2/app/views/groups/_read.plogic +7 -0
  107. data/examples/rails2/app/views/groups/edit.cfg.yaml +2 -0
  108. data/examples/rails2/app/views/groups/edit.html +26 -0
  109. data/examples/rails2/app/views/groups/edit.plogic +9 -0
  110. data/examples/rails2/app/views/groups/list.html +48 -0
  111. data/examples/rails2/app/views/groups/list.plogic +32 -0
  112. data/examples/rails2/app/views/groups/new.cfg.yaml +2 -0
  113. data/examples/rails2/app/views/groups/new.html +27 -0
  114. data/examples/rails2/app/views/groups/new.plogic +9 -0
  115. data/examples/rails2/app/views/groups/show.html +27 -0
  116. data/examples/rails2/app/views/groups/show.plogic +2 -0
  117. data/examples/rails2/app/views/layouts/groups.html +23 -0
  118. data/examples/rails2/app/views/layouts/groups.plogic +11 -0
  119. data/examples/rails2/app/views/layouts/members.html +23 -0
  120. data/examples/rails2/app/views/layouts/members.plogic +11 -0
  121. data/examples/rails2/app/views/layouts/members2.html +24 -0
  122. data/examples/rails2/app/views/layouts/members2.plogic +11 -0
  123. data/examples/rails2/app/views/members/_form.plogic +27 -0
  124. data/examples/rails2/app/views/members/_link.plogic +19 -0
  125. data/examples/rails2/app/views/members/_read.plogic +29 -0
  126. data/examples/rails2/app/views/members/edit.cfg.yaml +6 -0
  127. data/examples/rails2/app/views/members/edit.html +27 -0
  128. data/examples/rails2/app/views/members/edit.plogic +10 -0
  129. data/examples/rails2/app/views/members/list.html +53 -0
  130. data/examples/rails2/app/views/members/list.plogic +32 -0
  131. data/examples/rails2/app/views/members/new.html +61 -0
  132. data/examples/rails2/app/views/members/new.plogic +17 -0
  133. data/examples/rails2/app/views/members/show.html +41 -0
  134. data/examples/rails2/app/views/members/show.plogic +3 -0
  135. data/examples/rails2/db/create-tables.mysql.sql +27 -0
  136. data/examples/rails2/db/create-tables.pgsql.sql +27 -0
  137. data/examples/rails2/db/insert-data.sql +21 -0
  138. data/examples/rails2/db/tabledef.yaml +51 -0
  139. data/kwartz.gemspec +4 -4
  140. data/lib/kwartz.rb +10 -2
  141. data/lib/kwartz/assert.rb +1 -1
  142. data/lib/kwartz/binding/eperl.rb +85 -61
  143. data/lib/kwartz/binding/erubis.rb +6 -8
  144. data/lib/kwartz/binding/eruby.rb +5 -120
  145. data/lib/kwartz/binding/jstl.rb +116 -101
  146. data/lib/kwartz/binding/php.rb +79 -60
  147. data/lib/kwartz/binding/pierubis.rb +58 -0
  148. data/lib/kwartz/binding/rails.rb +45 -42
  149. data/lib/kwartz/binding/ruby.rb +193 -0
  150. data/lib/kwartz/binding/struts.rb +1 -1
  151. data/lib/kwartz/config.rb +4 -3
  152. data/lib/kwartz/converter.rb +231 -68
  153. data/lib/kwartz/defun.rb +126 -0
  154. data/lib/kwartz/error.rb +1 -1
  155. data/lib/kwartz/helper/rails.rb +437 -0
  156. data/lib/kwartz/main.rb +30 -38
  157. data/lib/kwartz/node.rb +46 -31
  158. data/lib/kwartz/parser.rb +43 -15
  159. data/lib/kwartz/translator.rb +104 -6
  160. data/lib/kwartz/util.rb +113 -0
  161. data/lib/kwartz/util/assert-text-equal.rb +1 -1
  162. data/lib/kwartz/util/testcase-helper.rb +26 -8
  163. data/test/test-compile.rb +3 -3
  164. data/test/test-compile.yaml +135 -5
  165. data/test/test-converter.rb +16 -8
  166. data/test/test-converter.yaml +307 -76
  167. data/test/test-directives.rb +1 -1
  168. data/test/test-directives.yaml +964 -979
  169. data/test/test-main.rb +61 -146
  170. data/test/test-main.yaml +235 -0
  171. data/test/test-parser.rb +10 -12
  172. data/test/test-parser.yaml +484 -326
  173. data/test/test-rails.rb +1 -1
  174. data/test/test-rails.yaml +37 -37
  175. data/test/test-ruleset.rb +1 -1
  176. data/test/test-ruleset.yaml +34 -40
  177. data/test/test.rb +1 -1
  178. metadata +82 -3
  179. data/COPYING +0 -340
@@ -94,7 +94,7 @@ translator for ePerl
94
94
  <h3 class="section-bar">Methods</h3>
95
95
 
96
96
  <div class="name-list">
97
- <a href="#M000083">new</a>&nbsp;&nbsp;
97
+ <a href="#M000120">new</a>&nbsp;&nbsp;
98
98
  </div>
99
99
  </div>
100
100
 
@@ -129,21 +129,21 @@ translator for ePerl
129
129
  <div id="methods">
130
130
  <h3 class="section-bar">Public Class methods</h3>
131
131
 
132
- <div id="method-M000083" class="method-detail">
133
- <a name="M000083"></a>
132
+ <div id="method-M000120" class="method-detail">
133
+ <a name="M000120"></a>
134
134
 
135
135
  <div class="method-heading">
136
- <a href="#M000083" class="method-signature">
136
+ <a href="#M000120" class="method-signature">
137
137
  <span class="method-name">new</span><span class="method-args">(properties={})</span>
138
138
  </a>
139
139
  </div>
140
140
 
141
141
  <div class="method-description">
142
142
  <p><a class="source-toggle" href="#"
143
- onclick="toggleCode('M000083-source');return false;">[Source]</a></p>
144
- <div class="method-source-code" id="M000083-source">
143
+ onclick="toggleCode('M000120-source');return false;">[Source]</a></p>
144
+ <div class="method-source-code" id="M000120-source">
145
145
  <pre>
146
- <span class="ruby-comment cmt"># File kwartz/binding/eperl.rb, line 156</span>
146
+ <span class="ruby-comment cmt"># File kwartz/binding/eperl.rb, line 180</span>
147
147
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">properties</span>={})
148
148
  <span class="ruby-keyword kw">super</span>(<span class="ruby-constant">EPERL_EMBED_PATTERNS</span>, <span class="ruby-identifier">properties</span>)
149
149
  <span class="ruby-keyword kw">end</span>
@@ -65,8 +65,8 @@
65
65
  <tr class="top-aligned-row">
66
66
  <td><strong>Parent:</strong></td>
67
67
  <td>
68
- <a href="ErubyHandler.html">
69
- ErubyHandler
68
+ <a href="RubyHandler.html">
69
+ RubyHandler
70
70
  </a>
71
71
  </td>
72
72
  </tr>
@@ -94,7 +94,7 @@ translator for Erubis
94
94
  <h3 class="section-bar">Methods</h3>
95
95
 
96
96
  <div class="name-list">
97
- <a href="#M000037">new</a>&nbsp;&nbsp;
97
+ <a href="#M000073">new</a>&nbsp;&nbsp;
98
98
  </div>
99
99
  </div>
100
100
 
@@ -129,24 +129,24 @@ translator for Erubis
129
129
  <div id="methods">
130
130
  <h3 class="section-bar">Public Class methods</h3>
131
131
 
132
- <div id="method-M000037" class="method-detail">
133
- <a name="M000037"></a>
132
+ <div id="method-M000073" class="method-detail">
133
+ <a name="M000073"></a>
134
134
 
135
135
  <div class="method-heading">
136
- <a href="#M000037" class="method-signature">
136
+ <a href="#M000073" class="method-signature">
137
137
  <span class="method-name">new</span><span class="method-args">(properties={})</span>
138
138
  </a>
139
139
  </div>
140
140
 
141
141
  <div class="method-description">
142
142
  <p><a class="source-toggle" href="#"
143
- onclick="toggleCode('M000037-source');return false;">[Source]</a></p>
144
- <div class="method-source-code" id="M000037-source">
143
+ onclick="toggleCode('M000073-source');return false;">[Source]</a></p>
144
+ <div class="method-source-code" id="M000073-source">
145
145
  <pre>
146
- <span class="ruby-comment cmt"># File kwartz/binding/erubis.rb, line 38</span>
146
+ <span class="ruby-comment cmt"># File kwartz/binding/erubis.rb, line 36</span>
147
147
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">properties</span>={})
148
148
  <span class="ruby-keyword kw">super</span>(<span class="ruby-constant">ERUBIS_EMBED_PATTERNS</span>, <span class="ruby-identifier">properties</span>)
149
- <span class="ruby-ivar">@escape</span> = <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@escape</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
149
+ <span class="ruby-comment cmt">#@escape = true if @escape == nil</span>
150
150
  <span class="ruby-keyword kw">end</span>
151
151
  </pre>
152
152
  </div>
@@ -65,8 +65,8 @@
65
65
  <tr class="top-aligned-row">
66
66
  <td><strong>Parent:</strong></td>
67
67
  <td>
68
- <a href="Handler.html">
69
- Handler
68
+ <a href="RubyHandler.html">
69
+ RubyHandler
70
70
  </a>
71
71
  </td>
72
72
  </tr>
@@ -90,16 +90,6 @@ directive handler for eRuby
90
90
 
91
91
  </div>
92
92
 
93
- <div id="method-list">
94
- <h3 class="section-bar">Methods</h3>
95
-
96
- <div class="name-list">
97
- <a href="#M000025">directive_format</a>&nbsp;&nbsp;
98
- <a href="#M000023">directive_pattern</a>&nbsp;&nbsp;
99
- <a href="#M000026">handle</a>&nbsp;&nbsp;
100
- <a href="#M000024">mapping_pattern</a>&nbsp;&nbsp;
101
- </div>
102
- </div>
103
93
 
104
94
  </div>
105
95
 
@@ -109,29 +99,6 @@ directive handler for eRuby
109
99
  <div id="section">
110
100
 
111
101
 
112
- <div id="constants-list">
113
- <h3 class="section-bar">Constants</h3>
114
-
115
- <div class="name-list">
116
- <table summary="Constants">
117
- <tr class="top-aligned-row context-row">
118
- <td class="context-item-name">ERUBY_DIRECTIVE_PATTERN</td>
119
- <td>=</td>
120
- <td class="context-item-value">/\A(\w+)(?:[:\s]\s*(.*))?\z/</td>
121
- </tr>
122
- <tr class="top-aligned-row context-row">
123
- <td class="context-item-name">ERUBY_MAPPING_PATTERN</td>
124
- <td>=</td>
125
- <td class="context-item-value">/\A'([-:\w]+)'\s+(.*)\z/</td>
126
- </tr>
127
- <tr class="top-aligned-row context-row">
128
- <td class="context-item-name">ERUBY_DIRECTIVE_FORMAT</td>
129
- <td>=</td>
130
- <td class="context-item-value">'%s: %s'</td>
131
- </tr>
132
- </table>
133
- </div>
134
- </div>
135
102
 
136
103
 
137
104
 
@@ -139,191 +106,6 @@ directive handler for eRuby
139
106
 
140
107
 
141
108
  <!-- if method_list -->
142
- <div id="methods">
143
- <h3 class="section-bar">Public Instance methods</h3>
144
-
145
- <div id="method-M000025" class="method-detail">
146
- <a name="M000025"></a>
147
-
148
- <div class="method-heading">
149
- <a href="#M000025" class="method-signature">
150
- <span class="method-name">directive_format</span><span class="method-args">()</span>
151
- </a>
152
- </div>
153
-
154
- <div class="method-description">
155
- <p><a class="source-toggle" href="#"
156
- onclick="toggleCode('M000025-source');return false;">[Source]</a></p>
157
- <div class="method-source-code" id="M000025-source">
158
- <pre>
159
- <span class="ruby-comment cmt"># File kwartz/binding/eruby.rb, line 38</span>
160
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">directive_format</span>
161
- <span class="ruby-keyword kw">return</span> <span class="ruby-constant">ERUBY_DIRECTIVE_FORMAT</span>
162
- <span class="ruby-keyword kw">end</span>
163
- </pre>
164
- </div>
165
- </div>
166
- </div>
167
-
168
- <div id="method-M000023" class="method-detail">
169
- <a name="M000023"></a>
170
-
171
- <div class="method-heading">
172
- <a href="#M000023" class="method-signature">
173
- <span class="method-name">directive_pattern</span><span class="method-args">()</span>
174
- </a>
175
- </div>
176
-
177
- <div class="method-description">
178
- <p><a class="source-toggle" href="#"
179
- onclick="toggleCode('M000023-source');return false;">[Source]</a></p>
180
- <div class="method-source-code" id="M000023-source">
181
- <pre>
182
- <span class="ruby-comment cmt"># File kwartz/binding/eruby.rb, line 24</span>
183
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">directive_pattern</span>
184
- <span class="ruby-keyword kw">return</span> <span class="ruby-constant">ERUBY_DIRECTIVE_PATTERN</span>
185
- <span class="ruby-keyword kw">end</span>
186
- </pre>
187
- </div>
188
- </div>
189
- </div>
190
-
191
- <div id="method-M000026" class="method-detail">
192
- <a name="M000026"></a>
193
-
194
- <div class="method-heading">
195
- <a href="#M000026" class="method-signature">
196
- <span class="method-name">handle</span><span class="method-args">(directive_name, directive_arg, directive_str, stag_info, etag_info, cont_stmts, attr_info, append_exprs, stmt_list)</span>
197
- </a>
198
- </div>
199
-
200
- <div class="method-description">
201
- <p><a class="source-toggle" href="#"
202
- onclick="toggleCode('M000026-source');return false;">[Source]</a></p>
203
- <div class="method-source-code" id="M000026-source">
204
- <pre>
205
- <span class="ruby-comment cmt"># File kwartz/binding/eruby.rb, line 43</span>
206
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">handle</span>(<span class="ruby-identifier">directive_name</span>, <span class="ruby-identifier">directive_arg</span>, <span class="ruby-identifier">directive_str</span>, <span class="ruby-identifier">stag_info</span>, <span class="ruby-identifier">etag_info</span>, <span class="ruby-identifier">cont_stmts</span>, <span class="ruby-identifier">attr_info</span>, <span class="ruby-identifier">append_exprs</span>, <span class="ruby-identifier">stmt_list</span>)
207
- <span class="ruby-identifier">ret</span> = <span class="ruby-keyword kw">super</span>
208
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">ret</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">ret</span>
209
-
210
- <span class="ruby-identifier">d_name</span> = <span class="ruby-identifier">directive_name</span>
211
- <span class="ruby-identifier">d_arg</span> = <span class="ruby-identifier">directive_arg</span>
212
- <span class="ruby-identifier">d_str</span> = <span class="ruby-identifier">directive_str</span>
213
-
214
- <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">directive_name</span>
215
-
216
- <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:for</span>, <span class="ruby-identifier">:For</span>, <span class="ruby-identifier">:FOR</span>, <span class="ruby-identifier">:list</span>, <span class="ruby-identifier">:List</span>, <span class="ruby-identifier">:LIST</span>
217
- <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">d_arg</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/\A(\w+)(?:,\s*(\w+))?\s+in\s+(.*)\z/</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">d_arg</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/\A(\w+)(?:,(\w+))?\s*[:=]\s*(.*)\z/</span>
218
- <span class="ruby-identifier">raise</span> <span class="ruby-identifier">convert_error</span>(<span class="ruby-value str">&quot;#'{d_str}': invalid argument.&quot;</span>, <span class="ruby-identifier">stag_info</span>.<span class="ruby-identifier">linenum</span>)
219
- <span class="ruby-keyword kw">end</span>
220
- <span class="ruby-identifier">loopvar</span> = <span class="ruby-identifier">$1</span> ; <span class="ruby-identifier">loopval</span> = <span class="ruby-identifier">$2</span> ; <span class="ruby-identifier">looplist</span> = <span class="ruby-identifier">$3</span>
221
- <span class="ruby-identifier">is_foreach</span> = <span class="ruby-identifier">d_name</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:for</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">d_name</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:For</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">d_name</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:FOR</span>
222
- <span class="ruby-identifier">counter</span> = <span class="ruby-identifier">d_name</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:for</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">d_name</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:list</span> <span class="ruby-operator">?</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-operator">:</span> <span class="ruby-node">&quot;#{loopvar}_ctr&quot;</span>
223
- <span class="ruby-identifier">toggle</span> = <span class="ruby-identifier">d_name</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">:FOR</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">d_name</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">:LIST</span> <span class="ruby-operator">?</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-operator">:</span> <span class="ruby-node">&quot;#{loopvar}_tgl&quot;</span>
224
- <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">stag_info</span>, <span class="ruby-identifier">attr_info</span>, <span class="ruby-identifier">append_exprs</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">is_foreach</span>
225
- <span class="ruby-identifier">stmt_list</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">NativeStatement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">&quot;#{counter} = 0&quot;</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">counter</span>
226
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">loopval</span>
227
- <span class="ruby-identifier">stmt_list</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">NativeStatement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">&quot;#{looplist}.each do |#{loopvar}, #{loopval}|&quot;</span>, <span class="ruby-identifier">:foreach</span>)
228
- <span class="ruby-keyword kw">else</span>
229
- <span class="ruby-identifier">stmt_list</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">NativeStatement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">&quot;for #{loopvar} in #{looplist} do&quot;</span>, <span class="ruby-identifier">:foreach</span>)
230
- <span class="ruby-keyword kw">end</span>
231
- <span class="ruby-identifier">stmt_list</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">NativeStatement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">&quot; #{counter} += 1&quot;</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">counter</span>
232
- <span class="ruby-identifier">stmt_list</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">NativeStatement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">&quot; #{toggle} = #{counter}%2==0 ? #{self.even} : #{self.odd}&quot;</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">toggle</span>
233
- <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">stag_info</span>, <span class="ruby-identifier">attr_info</span>, <span class="ruby-identifier">append_exprs</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">is_foreach</span>
234
- <span class="ruby-identifier">stmt_list</span>.<span class="ruby-identifier">concat</span>(<span class="ruby-identifier">cont_stmts</span>)
235
- <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">etag_info</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">is_foreach</span>
236
- <span class="ruby-identifier">stmt_list</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">NativeStatement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;end&quot;</span>, <span class="ruby-identifier">:foreach</span>)
237
- <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">etag_info</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">is_foreach</span>
238
-
239
- <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:while</span>, <span class="ruby-identifier">:loop</span>
240
- <span class="ruby-identifier">is_while</span> = <span class="ruby-identifier">d_name</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:while</span>
241
- <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">stag_info</span>, <span class="ruby-identifier">attr_info</span>, <span class="ruby-identifier">append_exprs</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">is_while</span>
242
- <span class="ruby-identifier">stmt_list</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">NativeStatement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">&quot;while #{d_arg} do&quot;</span>, <span class="ruby-identifier">:while</span>)
243
- <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">stag_info</span>, <span class="ruby-identifier">attr_info</span>, <span class="ruby-identifier">append_exprs</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">is_while</span>
244
- <span class="ruby-identifier">stmt_list</span>.<span class="ruby-identifier">concat</span>(<span class="ruby-identifier">cont_stmts</span>)
245
- <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">etag_info</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">is_while</span>
246
- <span class="ruby-identifier">stmt_list</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">NativeStatement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;end&quot;</span>, <span class="ruby-identifier">:while</span>)
247
- <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">etag_info</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">is_while</span>
248
-
249
- <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:set</span>
250
- <span class="ruby-identifier">stmt_list</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">NativeStatement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">d_arg</span>, <span class="ruby-identifier">:set</span>)
251
- <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">stag_info</span>, <span class="ruby-identifier">attr_info</span>, <span class="ruby-identifier">append_exprs</span>)
252
- <span class="ruby-identifier">stmt_list</span>.<span class="ruby-identifier">concat</span>(<span class="ruby-identifier">cont_stmts</span>)
253
- <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">etag_info</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>)
254
-
255
- <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:if</span>
256
- <span class="ruby-identifier">stmt_list</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">NativeStatement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">&quot;if #{d_arg} then&quot;</span>, <span class="ruby-identifier">:if</span>)
257
- <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">stag_info</span>, <span class="ruby-identifier">attr_info</span>, <span class="ruby-identifier">append_exprs</span>)
258
- <span class="ruby-identifier">stmt_list</span>.<span class="ruby-identifier">concat</span>(<span class="ruby-identifier">cont_stmts</span>)
259
- <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">etag_info</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>)
260
- <span class="ruby-identifier">stmt_list</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">NativeStatement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;end&quot;</span>, <span class="ruby-identifier">:if</span>)
261
-
262
- <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:elsif</span>, <span class="ruby-identifier">:else</span>
263
- <span class="ruby-keyword kw">unless</span> <span class="ruby-operator">!</span><span class="ruby-identifier">stmt_list</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-operator">&amp;&amp;</span> (<span class="ruby-identifier">st</span>=<span class="ruby-identifier">stmt_list</span>[<span class="ruby-value">-1</span>]).<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">NativeStatement</span>) <span class="ruby-operator">&amp;&amp;</span> (<span class="ruby-identifier">st</span>.<span class="ruby-identifier">kind</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:if</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">st</span>.<span class="ruby-identifier">kind</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:elseif</span>)
264
- <span class="ruby-identifier">raise</span> <span class="ruby-identifier">convert_error</span>(<span class="ruby-node">&quot;'#{d_str}': previous statement should be 'if' or 'elsif'.&quot;</span>, <span class="ruby-identifier">stag_info</span>.<span class="ruby-identifier">linenum</span>)
265
- <span class="ruby-keyword kw">end</span>
266
- <span class="ruby-identifier">stmt_list</span>.<span class="ruby-identifier">pop</span> <span class="ruby-comment cmt"># delete 'end'</span>
267
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">d_name</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:else</span>
268
- <span class="ruby-identifier">kind</span> = <span class="ruby-identifier">:else</span>
269
- <span class="ruby-identifier">stmt_list</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">NativeStatement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;else&quot;</span>, <span class="ruby-identifier">:else</span>)
270
- <span class="ruby-keyword kw">else</span>
271
- <span class="ruby-identifier">kind</span> = <span class="ruby-identifier">:elseif</span>
272
- <span class="ruby-identifier">stmt_list</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">NativeStatement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">&quot;elsif #{d_arg} then&quot;</span>, <span class="ruby-identifier">:elseif</span>)
273
- <span class="ruby-keyword kw">end</span>
274
- <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">stag_info</span>, <span class="ruby-identifier">attr_info</span>, <span class="ruby-identifier">append_exprs</span>)
275
- <span class="ruby-identifier">stmt_list</span>.<span class="ruby-identifier">concat</span>(<span class="ruby-identifier">cont_stmts</span>)
276
- <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">etag_info</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>)
277
- <span class="ruby-identifier">stmt_list</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">NativeStatement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;end&quot;</span>, <span class="ruby-identifier">kind</span>)
278
-
279
- <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:default</span>, <span class="ruby-identifier">:Default</span>, <span class="ruby-identifier">:DEFAULT</span>
280
- <span class="ruby-identifier">error_if_empty_tag</span>(<span class="ruby-identifier">stag_info</span>, <span class="ruby-identifier">etag_info</span>, <span class="ruby-identifier">d_name</span>, <span class="ruby-identifier">d_arg</span>)
281
- <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">stag_info</span>, <span class="ruby-identifier">attr_info</span>, <span class="ruby-identifier">append_exprs</span>)
282
- <span class="ruby-identifier">stmt_list</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">NativeStatement</span>.<span class="ruby-identifier">new_without_newline</span>(<span class="ruby-node">&quot;if (#{d_arg}) &amp;&amp; !(#{d_arg}).to_s.empty? then&quot;</span>, <span class="ruby-identifier">:if</span>)
283
- <span class="ruby-identifier">flag_escape</span> = <span class="ruby-identifier">d_name</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:default</span> <span class="ruby-operator">?</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-operator">:</span> (<span class="ruby-identifier">d_name</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:Default</span>)
284
- <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-constant">NativeExpression</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">d_arg</span>, <span class="ruby-identifier">flag_escape</span>) ])
285
- <span class="ruby-identifier">stmt_list</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">NativeStatement</span>.<span class="ruby-identifier">new_without_newline</span>(<span class="ruby-value str">&quot;else&quot;</span>, <span class="ruby-identifier">:else</span>)
286
- <span class="ruby-identifier">stmt_list</span>.<span class="ruby-identifier">concat</span>(<span class="ruby-identifier">cont_stmts</span>)
287
- <span class="ruby-identifier">stmt_list</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">NativeStatement</span>.<span class="ruby-identifier">new_without_newline</span>(<span class="ruby-value str">&quot;end&quot;</span>, <span class="ruby-identifier">:else</span>)
288
- <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">etag_info</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>)
289
-
290
- <span class="ruby-keyword kw">else</span>
291
- <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
292
-
293
- <span class="ruby-keyword kw">end</span> <span class="ruby-comment cmt">#case</span>
294
- <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
295
-
296
- <span class="ruby-keyword kw">end</span>
297
- </pre>
298
- </div>
299
- </div>
300
- </div>
301
-
302
- <div id="method-M000024" class="method-detail">
303
- <a name="M000024"></a>
304
-
305
- <div class="method-heading">
306
- <a href="#M000024" class="method-signature">
307
- <span class="method-name">mapping_pattern</span><span class="method-args">()</span>
308
- </a>
309
- </div>
310
-
311
- <div class="method-description">
312
- <p><a class="source-toggle" href="#"
313
- onclick="toggleCode('M000024-source');return false;">[Source]</a></p>
314
- <div class="method-source-code" id="M000024-source">
315
- <pre>
316
- <span class="ruby-comment cmt"># File kwartz/binding/eruby.rb, line 31</span>
317
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mapping_pattern</span>
318
- <span class="ruby-keyword kw">return</span> <span class="ruby-constant">ERUBY_MAPPING_PATTERN</span>
319
- <span class="ruby-keyword kw">end</span>
320
- </pre>
321
- </div>
322
- </div>
323
- </div>
324
-
325
-
326
- </div>
327
109
 
328
110
 
329
111
  </div>
@@ -94,7 +94,7 @@ translator for eRuby
94
94
  <h3 class="section-bar">Methods</h3>
95
95
 
96
96
  <div class="name-list">
97
- <a href="#M000082">new</a>&nbsp;&nbsp;
97
+ <a href="#M000119">new</a>&nbsp;&nbsp;
98
98
  </div>
99
99
  </div>
100
100
 
@@ -129,21 +129,21 @@ translator for eRuby
129
129
  <div id="methods">
130
130
  <h3 class="section-bar">Public Class methods</h3>
131
131
 
132
- <div id="method-M000082" class="method-detail">
133
- <a name="M000082"></a>
132
+ <div id="method-M000119" class="method-detail">
133
+ <a name="M000119"></a>
134
134
 
135
135
  <div class="method-heading">
136
- <a href="#M000082" class="method-signature">
136
+ <a href="#M000119" class="method-signature">
137
137
  <span class="method-name">new</span><span class="method-args">(properties={})</span>
138
138
  </a>
139
139
  </div>
140
140
 
141
141
  <div class="method-description">
142
142
  <p><a class="source-toggle" href="#"
143
- onclick="toggleCode('M000082-source');return false;">[Source]</a></p>
144
- <div class="method-source-code" id="M000082-source">
143
+ onclick="toggleCode('M000119-source');return false;">[Source]</a></p>
144
+ <div class="method-source-code" id="M000119-source">
145
145
  <pre>
146
- <span class="ruby-comment cmt"># File kwartz/binding/eruby.rb, line 154</span>
146
+ <span class="ruby-comment cmt"># File kwartz/binding/eruby.rb, line 39</span>
147
147
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">properties</span>={})
148
148
  <span class="ruby-keyword kw">super</span>(<span class="ruby-constant">ERUBY_EMBED_PATTERNS</span>, <span class="ruby-identifier">properties</span>)
149
149
  <span class="ruby-keyword kw">end</span>
@@ -94,9 +94,9 @@ represents _stag, _cont, _etag, _elem, _element(name), and _content(name)
94
94
  <h3 class="section-bar">Methods</h3>
95
95
 
96
96
  <div class="name-list">
97
- <a href="#M000077">_inspect</a>&nbsp;&nbsp;
98
- <a href="#M000078">accept</a>&nbsp;&nbsp;
99
- <a href="#M000076">new</a>&nbsp;&nbsp;
97
+ <a href="#M000114">_inspect</a>&nbsp;&nbsp;
98
+ <a href="#M000115">accept</a>&nbsp;&nbsp;
99
+ <a href="#M000113">new</a>&nbsp;&nbsp;
100
100
  </div>
101
101
  </div>
102
102
 
@@ -136,19 +136,19 @@ represents _stag, _cont, _etag, _elem, _element(name), and _content(name)
136
136
  <div id="methods">
137
137
  <h3 class="section-bar">Public Class methods</h3>
138
138
 
139
- <div id="method-M000076" class="method-detail">
140
- <a name="M000076"></a>
139
+ <div id="method-M000113" class="method-detail">
140
+ <a name="M000113"></a>
141
141
 
142
142
  <div class="method-heading">
143
- <a href="#M000076" class="method-signature">
143
+ <a href="#M000113" class="method-signature">
144
144
  <span class="method-name">new</span><span class="method-args">(kind, name)</span>
145
145
  </a>
146
146
  </div>
147
147
 
148
148
  <div class="method-description">
149
149
  <p><a class="source-toggle" href="#"
150
- onclick="toggleCode('M000076-source');return false;">[Source]</a></p>
151
- <div class="method-source-code" id="M000076-source">
150
+ onclick="toggleCode('M000113-source');return false;">[Source]</a></p>
151
+ <div class="method-source-code" id="M000113-source">
152
152
  <pre>
153
153
  <span class="ruby-comment cmt"># File kwartz/node.rb, line 147</span>
154
154
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">kind</span>, <span class="ruby-identifier">name</span>)
@@ -162,26 +162,26 @@ represents _stag, _cont, _etag, _elem, _element(name), and _content(name)
162
162
 
163
163
  <h3 class="section-bar">Public Instance methods</h3>
164
164
 
165
- <div id="method-M000077" class="method-detail">
166
- <a name="M000077"></a>
165
+ <div id="method-M000114" class="method-detail">
166
+ <a name="M000114"></a>
167
167
 
168
168
  <div class="method-heading">
169
- <a href="#M000077" class="method-signature">
169
+ <a href="#M000114" class="method-signature">
170
170
  <span class="method-name">_inspect</span><span class="method-args">(indent=0)</span>
171
171
  </a>
172
172
  </div>
173
173
 
174
174
  <div class="method-description">
175
175
  <p><a class="source-toggle" href="#"
176
- onclick="toggleCode('M000077-source');return false;">[Source]</a></p>
177
- <div class="method-source-code" id="M000077-source">
176
+ onclick="toggleCode('M000114-source');return false;">[Source]</a></p>
177
+ <div class="method-source-code" id="M000114-source">
178
178
  <pre>
179
179
  <span class="ruby-comment cmt"># File kwartz/node.rb, line 155</span>
180
180
  <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>)
181
181
  <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@kind</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:element</span> <span class="ruby-operator">||</span> <span class="ruby-ivar">@kind</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:content</span>
182
- <span class="ruby-keyword kw">return</span> <span class="ruby-node">&quot;_#{@kind}(#{@name.inspect})&quot;</span>
182
+ <span class="ruby-keyword kw">return</span> <span class="ruby-node">&quot;_#{@kind}(#{@name})\n&quot;</span>
183
183
  <span class="ruby-keyword kw">else</span>
184
- <span class="ruby-keyword kw">return</span> <span class="ruby-node">&quot;_#{@kind}&quot;</span>
184
+ <span class="ruby-keyword kw">return</span> <span class="ruby-node">&quot;_#{@kind}\n&quot;</span>
185
185
  <span class="ruby-keyword kw">end</span>
186
186
  <span class="ruby-keyword kw">end</span>
187
187
  </pre>
@@ -189,19 +189,19 @@ represents _stag, _cont, _etag, _elem, _element(name), and _content(name)
189
189
  </div>
190
190
  </div>
191
191
 
192
- <div id="method-M000078" class="method-detail">
193
- <a name="M000078"></a>
192
+ <div id="method-M000115" class="method-detail">
193
+ <a name="M000115"></a>
194
194
 
195
195
  <div class="method-heading">
196
- <a href="#M000078" class="method-signature">
196
+ <a href="#M000115" class="method-signature">
197
197
  <span class="method-name">accept</span><span class="method-args">(translator)</span>
198
198
  </a>
199
199
  </div>
200
200
 
201
201
  <div class="method-description">
202
202
  <p><a class="source-toggle" href="#"
203
- onclick="toggleCode('M000078-source');return false;">[Source]</a></p>
204
- <div class="method-source-code" id="M000078-source">
203
+ onclick="toggleCode('M000115-source');return false;">[Source]</a></p>
204
+ <div class="method-source-code" id="M000115-source">
205
205
  <pre>
206
206
  <span class="ruby-comment cmt"># File kwartz/node.rb, line 164</span>
207
207
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">accept</span>(<span class="ruby-identifier">translator</span>)