Class: Class

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-xml-mapper/basic_containers.rb

Class Method Summary collapse

Class Method Details

.new_from_xml_attr(attr) ⇒ Object



38
39
40
# File 'lib/ruby-xml-mapper/basic_containers.rb', line 38

def self.new_from_xml_attr attr
  String.new_from_xml_attr(attr).constantize
end

.new_from_xml_node(node) ⇒ Object



42
43
44
# File 'lib/ruby-xml-mapper/basic_containers.rb', line 42

def self.new_from_xml_node node
  String.new_from_xml_node(node).constantize
end