Class: DataMapper::Property::Xml
- Inherits:
-
Object
- Object
- DataMapper::Property::Xml
- Defined in:
- lib/property/xml.rb
Instance Method Summary collapse
Instance Method Details
#dump(value) ⇒ Object
8 9 10 |
# File 'lib/property/xml.rb', line 8 def dump(value) value.to_xml end |
#load(value) ⇒ Object
11 12 13 |
# File 'lib/property/xml.rb', line 11 def load(value) Nokogiri::XML value end |