Class: Slaw::Grammars::ZA::Act::PrefaceStatement

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

Instance Method Summary collapse

Instance Method Details

#inline_itemsObject



108
109
110
# File 'lib/slaw/grammars/za/act_nodes.rb', line 108

def inline_items
  content.inline_items if content.respond_to? :inline_items
end

#longtitleObject



104
105
106
# File 'lib/slaw/grammars/za/act_nodes.rb', line 104

def longtitle
  self.content if self.content.is_a? LongTitle
end

#to_xml(b, idprefix, i = 0) ⇒ Object



96
97
98
99
100
101
102
# File 'lib/slaw/grammars/za/act_nodes.rb', line 96

def to_xml(b, idprefix, i=0)
  if longtitle
    longtitle.to_xml(b, idprefix)
  else
    b.p { |b| inline_items.to_xml(b, idprefix) }
  end
end