class Nokogiri::XML::SAX::Parser

def parse thing

IO object.
Parse given +thing+ which may be a string containing xml, or an
##
def parse thing
  if thing.respond_to?(:read) && thing.respond_to?(:close)
    parse_io(thing)
  else
    parse_memory(thing)
  end
end