module RForce::MethodKeys

Allows indexing hashes like method calls: hash.key to supplement the traditional way of indexing: hash

Public Instance Methods

method_missing(method, *args) click to toggle source
# File lib/rforce/method_keys.rb, line 5
def method_missing(method, *args)
  raise NoMethodError unless respond_to?('[]')
  self[method]
end