class Data::Criteria::HashProxy
Public Class Methods
new(hash)
click to toggle source
# File lib/data/criteria/hash_proxy.rb, line 4 def initialize(hash) @hash = hash end
Public Instance Methods
[](k)
click to toggle source
# File lib/data/criteria/hash_proxy.rb, line 8 def [](k) @hash.fetch(k, nil) || @hash.fetch(k.to_sym, nil) || @hash.fetch(k.to_s, nil) || @hash[k] end
key?(k)
click to toggle source
# File lib/data/criteria/hash_proxy.rb, line 12 def key?(k) @hash.key?(k) || @hash.key?(k.to_sym) || @hash.key?(k.to_s) end