Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/cocainum/overrides.rb
Instance Method Summary collapse
Instance Method Details
#to_xml(key) ⇒ Object
54 55 56 57 58 59 60 61 62 |
# File 'lib/cocainum/overrides.rb', line 54 def to_xml(key) map do |v| if Hash === v v.to_xml(false, key) else '<%s>%s</%s>' % [key, v, key] end end.join end |