module Multiton::Utils
Adds compatibility methods to support different Ruby versions.
Public Class Methods
hash_key(hash, value) → key
click to toggle source
Returns the key associated with value
on hash
. If value
does not exist returns nil
.
# File lib/multiton/utils.rb, line 12 def hash_key(hash, value) hash.key value end