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



28
29
30
# File 'lib/ruby-xml-mapper/basic_containers.rb', line 28

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

.new_from_xml_node(node) ⇒ Object



32
33
34
# File 'lib/ruby-xml-mapper/basic_containers.rb', line 32

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