Class: Slaw::ZA::Act::SectionTitleType2

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/slaw/za/act_nodes.rb

Instance Method Summary collapse

Instance Method Details

#numObject

a section title of the form:

  1. 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

#titleObject



243
244
245
# File 'lib/slaw/za/act_nodes.rb', line 243

def title
  section_title.empty? ? "" : section_title.content.text_value
end