Class: Slaw::ZA::Act::NumberedStatement
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Slaw::ZA::Act::NumberedStatement
- Defined in:
- lib/slaw/za/act_nodes.rb
Instance Method Summary collapse
Instance Method Details
#content ⇒ Object
297 298 299 300 301 302 303 |
# File 'lib/slaw/za/act_nodes.rb', line 297 def content if elements[3].text_value == "" nil else elements[3].clauses end end |
#num ⇒ Object
289 290 291 |
# File 'lib/slaw/za/act_nodes.rb', line 289 def num numbered_statement_prefix.num.text_value end |
#parentheses? ⇒ Boolean
293 294 295 |
# File 'lib/slaw/za/act_nodes.rb', line 293 def parentheses? !numbered_statement_prefix.respond_to? :dotted_number_2 end |
#to_xml(b, idprefix) ⇒ Object
305 306 307 |
# File 'lib/slaw/za/act_nodes.rb', line 305 def to_xml(b, idprefix) b.p { |b| content.to_xml(b, idprefix) } if content end |