Class: Array

Inherits:
Object show all
Defined in:
lib/formatters.rb

Instance Method Summary collapse

Instance Method Details

#to_xml(array_name = :array, _item_name = :item) ⇒ Object



272
273
274
# File 'lib/formatters.rb', line 272

def to_xml(array_name = :array, _item_name = :item)
  %(<#{array_name}>) + map { |n| n.to_xml(:item) }.join + "</#{array_name}>"
end