class Pohoda::Builders::LCen::ListCentreType2

Public Instance Methods

builder() click to toggle source
Calls superclass method
# File lib/pohoda/builders/l_cen/list_centre_type2.rb, line 7
def builder
  root = Ox::Element.new(name)
  root = add_attributes_and_namespaces(root)

  super.nodes.each do |n|
    root << n
  end

  if data.key? :centre
    data[:centre].each { |i| root << Cen::CentreType.new('lCen:centre', i).builder }
  end

  root
end