class Nokogiri::XML::SAX::Parser

def parse thing, &block

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