Class: Slaw::ZA::Act::Remark

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, idprefix) ⇒ Object



310
311
312
313
314
315
316
317
318
319
320
321
322
# File 'lib/slaw/za/act_nodes.rb', line 310

def to_xml(b, idprefix)
  b.remark(status: 'editorial') do |b|
    b << '['
    for e in content.elements
      if e.respond_to? :to_xml
        e.to_xml(b, idprefix)
      else
        b << e.text_value
      end
    end
    b << ']'
  end
end