class Hash

Reopen the Hash class to add method.

Public Instance Methods

method_missing(name) click to toggle source

Allow accessing hashes via dot notation.

@param name [String] The method name. @return [Object]

Calls superclass method
# File lib/omdbapi/default.rb, line 19
def method_missing(name)
  return self[name] if key? name
  self.each { |k,v| return v if k.to_s.to_sym == name }
  super.method_missing name
end