Class: Slaw::ZA::Act::Preamble

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

Instance Method Summary collapse

Instance Method Details

#to_xml(b) ⇒ Object



81
82
83
84
85
86
87
88
89
90
91
# File 'lib/slaw/za/act_nodes.rb', line 81

def to_xml(b)
  if text_value != ""
    b.preamble { |b|
      statements.elements.each { |e|
        if not (e.content.text_value =~ /^preamble/i)
          b.p(e.content.text_value)
        end
      }
    }
  end
end