class XML::ParserNS
Constants
- EVENT_HANDLERS
Public Class Methods
new(*args)
click to toggle source
# File lib/xml/parserns.rb, line 211 def initialize(*args) @parser = InternalParserNS.new(self, *args) end
Public Instance Methods
method_missing(name, *args)
click to toggle source
# File lib/xml/parserns.rb, line 226 def method_missing(name, *args) if @parser.respond_to?(name) @parser.send(name, *args) else raise NameError.new("undefined method `#{name.id2name}' " + "for #{self.inspect}") end end
parse(*args, &block)
click to toggle source
# File lib/xml/parserns.rb, line 215 def parse(*args, &block) EVENT_HANDLERS.each do |m| if self.respond_to?(m) eval "def @parser.#{m}(*args); @parserNS.#{m}(*args); end" end end @parser.parse(*args, &block) end
setReturnNSTriplet(do_nst)
click to toggle source
# File lib/xml/parserns.rb, line 224 def setReturnNSTriplet(do_nst); end