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
Calls superclass method
# File lib/rforce/method_keys.rb, line 10 def method_missing(method, *args) return self[method] if respond_to?(:[]) super end
respond_to_missing?(*)
click to toggle source
Calls superclass method
# File lib/rforce/method_keys.rb, line 5 def respond_to_missing?(*) return true if respond_to?(:[]) super end