Class: XML::Document
- Inherits:
-
Object
- Object
- XML::Document
- Defined in:
- lib/libxml_additions.rb
Instance Method Summary collapse
-
#method_missing(meth, *args) ⇒ Object
In case there’s already a method_missing, alias it Future proofing?.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args) ⇒ Object
In case there’s already a method_missing, alias it Future proofing?
44 45 46 47 |
# File 'lib/libxml_additions.rb', line 44 def method_missing( meth, *args ) return self.root if self.root.name == meth.to_s raise NoMethodError, "XML::Document Additions: undefined method '#{meth.to_s}' for #{self.to_s}" end |