LibXML::Reader
45 46 47 48 49 50
# File 'lib/peanuts/xml.rb', line 45 def self.new(*args, &block) cls = self == Reader ? XML.default::Reader : self obj = cls.allocate obj.send(:initialize, *args, &block) obj end