Class: Slaw::Grammars::ZA::Act::SectionTitleType1

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

Instance Method Summary collapse

Instance Method Details

#numObject

a section title of the form:

Definitions

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