Class: Nokogiri::XML::Node
- Defined in:
- lib/SitemapMaker/Nokogiri/XML/node.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, args = nil, &block) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/SitemapMaker/Nokogiri/XML/node.rb', line 5 def method_missing(method_name, args = nil, &block) case method_name when /_hash$/ get_attribute(method_name.to_s.gsub(/_hash$/, '')) else super(method_name, args, &block) end end |