Class: Array

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

Instance Method Summary collapse

Instance Method Details

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



25
26
27
# File 'lib/to_xml.rb', line 25

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