module OAS::AdXML::Utils
Attributes
parser[W]
Public Instance Methods
parser()
click to toggle source
# File lib/oas/adxml.rb, line 10 def parser @parser ||= Nori.new(:advanced_typecasting => false, :convert_tags_to => lambda { |tag| tag.to_sym }) end
to_hash()
click to toggle source
# File lib/oas/adxml.rb, line 20 def to_hash @hash ||= parser.parse(@doc.to_xml) end
to_s()
click to toggle source
# File lib/oas/adxml.rb, line 15 def to_s @doc.to_xml end
Also aliased as: to_xml