Class: ValueArrayNode

Inherits:
XML::Mapping::ArrayNode
  • Object
show all
Defined in:
lib/support/xml_mapping/value_array_node.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ ValueArrayNode



4
5
6
7
8
9
# File 'lib/support/xml_mapping/value_array_node.rb', line 4

def initialize(*args)
  *args = super(*args)
  @options[:marshaller] = proc{ |xml, value| xml.text = value }
  @options[:unmarshaller] = proc{ |xml| xml.text }
  args
end