Returns whether to use advanced typecasting. Defaults to true.
# File lib/nori.rb, line 30 def advanced_typecasting? @advanced_typecasting != false end
Yields self for configuration.
# File lib/nori.rb, line 21 def configure yield self end
Transforms a given tag using the specified conversion formula.
# File lib/nori.rb, line 50 def convert_tag(tag) @convert_tag.call(tag) end
Translates the given xml to a Hash. Accepts an optional parser to use.
# File lib/nori.rb, line 10 def parse(xml, parser = nil) return {} if xml.blank? Parser.parse xml, parser end
Generated with the Darkfish Rdoc Generator 2.