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



40
41
42
# File 'lib/ruby-xml-mapper/basic_containers.rb', line 40

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

.new_from_xml_node(node) ⇒ Object



44
45
46
# File 'lib/ruby-xml-mapper/basic_containers.rb', line 44

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