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…
226 227 228 |
# File 'lib/slaw/grammars/za/act_nodes.rb', line 226 def num section_title_prefix.number_letter.text_value end |
#to_xml(b, *args) ⇒ Object
230 231 232 233 234 235 236 237 238 |
# File 'lib/slaw/grammars/za/act_nodes.rb', line 230 def to_xml(b, *args) b.num("#{num}.") if inline_items.text_value b.heading { |b| inline_items.to_xml(b) } end end |