Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/xml/mapping/core_classes_mapping.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.load_from_xml(xml, options = {:mapping=>:_default}) ⇒ Object



2
3
4
# File 'lib/xml/mapping/core_classes_mapping.rb', line 2

def self.load_from_xml(xml, options={:mapping=>:_default})
  xml.text
end

Instance Method Details

#fill_into_xml(xml, options = {:mapping=>:_default}) ⇒ Object



6
7
8
# File 'lib/xml/mapping/core_classes_mapping.rb', line 6

def fill_into_xml(xml, options={:mapping=>:_default})
  xml.text = self
end

#textObject



10
11
12
# File 'lib/xml/mapping/core_classes_mapping.rb', line 10

def text
  self
end