class IML::Hash
IML's own re-implementation of hash with key/method funky patch and active_supports HashWithIndeifferetAccess
Public Instance Methods
method_missing(method_name)
click to toggle source
Way to access Hash
keys by method_name
Calls superclass method
# File lib/iml/hash.rb, line 6 def method_missing(method_name) key?(method_name) ? self[method_name] : super end
respond_to_missing?(method_name, _include_private = false)
click to toggle source
@return <Boolean> Responds true for methods that have names of Hash
keys
# File lib/iml/hash.rb, line 11 def respond_to_missing?(method_name, _include_private = false) key?(method_name) || false end