class Nokogiri::XML::Node
Public Instance Methods
method_missing(method_name, args = nil, &block)
click to toggle source
Calls superclass method
# 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
Private Instance Methods
get_attribute(key)
click to toggle source
# File lib/SitemapMaker/Nokogiri/XML/node.rb, line 15 def get_attribute(key) return nil unless respond_to?(:attributes) if attributes.respond_to?(:has_key?) return attributes[key] else return nil end end