# File lib/nokogiri/xml/sax/parser.rb, line 79 def parse thing, &block if thing.respond_to?(:read) && thing.respond_to?(:close) parse_io(thing, &block) else parse_memory(thing, &block) end end