Class: Slaw::Grammars::ZA::Act::Preface

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

Instance Method Summary collapse

Instance Method Details

#to_xml(b, *args) ⇒ Object



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

def to_xml(b, *args)
  if text_value != ""
    b.preface { |b|
      statements.elements.each { |element|
        for e in element.elements
          e.to_xml(b, "") if e.is_a? Slaw::Grammars::Inlines::NakedStatement
        end
      }
    }
  end
end