Class: Slaw::ZA::Act::SectionTitleType2
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Slaw::ZA::Act::SectionTitleType2
- Defined in:
- lib/slaw/za/act_nodes.rb
Instance Method Summary collapse
-
#num ⇒ Object
a section title of the form:.
- #title ⇒ 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.
239 240 241 |
# File 'lib/slaw/za/act_nodes.rb', line 239 def num section_title_prefix.number_letter.text_value end |
#title ⇒ Object
243 244 245 |
# File 'lib/slaw/za/act_nodes.rb', line 243 def title section_title.empty? ? "" : section_title.content.text_value end |