class Slaw::Grammars::ZA::Act::Chapter
Public Instance Methods
num()
click to toggle source
# File lib/slaw/grammars/za/act_nodes.rb, line 203 def num heading.num end
to_xml(b, id_prefix='', *args)
click to toggle source
# File lib/slaw/grammars/za/act_nodes.rb, line 207 def to_xml(b, id_prefix='', *args) id = id_prefix + "chp_#{Slaw::Grammars::Counters.clean(num)}" b.chapter(eId: id) { |b| heading.to_xml(b) children.elements.each_with_index { |e, i| e.to_xml(b, id + '__', i) } } end