Methods

Class/Module Index [+]

Quicksearch

ActiveSupport::XmlMini_NokogiriSAX

Attributes

document_class[RW]

Public Instance Methods

parse(string) click to toggle source
# File lib/active_support/xml_mini/nokogirisax.rb, line 65
def parse(string)
  return {} if string.blank?
  document = self.document_class.new
  parser = Nokogiri::XML::SAX::Parser.new(document)
  parser.parse(string)
  document.hash
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.