Class: Integer
- Inherits:
-
Object
- Object
- Integer
- Defined in:
- lib/ruby-xml-mapper/basic_containers.rb
Class Method Summary collapse
Class Method Details
.new_from_xml_attr(attr) ⇒ Object
50 51 52 |
# File 'lib/ruby-xml-mapper/basic_containers.rb', line 50 def self.new_from_xml_attr attr attr.value.to_i end |
.new_from_xml_node(node) ⇒ Object
54 55 56 |
# File 'lib/ruby-xml-mapper/basic_containers.rb', line 54 def self.new_from_xml_node node node.content.to_i end |