Class: Symbol

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



30
31
32
# File 'lib/ruby-xml-mapper/basic_containers.rb', line 30

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

.new_from_xml_node(node) ⇒ Object



34
35
36
# File 'lib/ruby-xml-mapper/basic_containers.rb', line 34

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