Class: Slaw::Grammars::ZA::Act::SectionTitleType2
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Slaw::Grammars::ZA::Act::SectionTitleType2
- Defined in:
- lib/slaw/grammars/za/act_nodes.rb
Instance Method Summary collapse
-
#num ⇒ Object
a section title of the form:.
- #to_xml(b, *args) ⇒ Object
Instance Method Details
#num ⇒ Object
a section title of the form:
-
Definitions
In this act…
In this format, the title is optional and the section content may start where we think the title is.
250 251 252 |
# File 'lib/slaw/grammars/za/act_nodes.rb', line 250 def num section_title_prefix.number_letter.text_value end |
#to_xml(b, *args) ⇒ Object
254 255 256 257 258 259 260 261 262 263 264 |
# File 'lib/slaw/grammars/za/act_nodes.rb', line 254 def to_xml(b, *args) b.num("#{num}.") if section_title.respond_to? :inline_items and section_title.inline_items.text_value b.heading { |b| section_title.inline_items.to_xml(b) } else b.heading end end |