Class: Slaw::Grammars::ZA::Act::SectionTitleType1
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Slaw::Grammars::ZA::Act::SectionTitleType1
- 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…
227 228 229 |
# File 'lib/slaw/grammars/za/act_nodes.rb', line 227 def num section_title_prefix.number_letter.text_value end |
#to_xml(b, *args) ⇒ Object
231 232 233 234 235 236 237 238 239 |
# File 'lib/slaw/grammars/za/act_nodes.rb', line 231 def to_xml(b, *args) b.num("#{num}.") if inline_items.text_value b.heading { |b| inline_items.to_xml(b) } end end |