module Representable::XML
Private Instance Methods
parse_xml(doc, *args)
click to toggle source
# File lib/monkey_patches/representable/xml.rb, line 5 def parse_xml(doc, *args) node = Nokogiri::XML(doc) { |config| config.strict } node.remove_namespaces! if remove_namespaces? node.root end