Module: Kernel
- Defined in:
- lib/equal_rights_for_hash.rb
Instance Method Summary collapse
Instance Method Details
#Hash(value) ⇒ Object
2 3 4 5 6 |
# File 'lib/equal_rights_for_hash.rb', line 2 def Hash(value) value.to_h rescue raise ArgumentError, "invalid value for Hash(): #{value.inspect}" end |