Class: CdataNode

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

Instance Method Summary collapse

Instance Method Details

#set_attr_value(xml, value) ⇒ Object

:nodoc:



4
5
6
# File 'lib/support/xml_mapping/cdata_node.rb', line 4

def set_attr_value(xml, value) # :nodoc:
  @path.first(xml,:ensure_created => true).text = REXML::CData.new(value)
end