Method: PropCheck::Generators.hash_of
- Defined in:
- lib/prop_check/generators.rb
.hash_of(key_generator, value_generator, **kwargs) ⇒ Object
Alias for #hash that does not conflict with a possibly overridden ‘Object#hash`.
483 484 485 486 |
# File 'lib/prop_check/generators.rb', line 483 def hash_of(key_generator, value_generator, **kwargs) array(tuple(key_generator, value_generator), **kwargs) .map(&:to_h) end |