Class: Contracts::Builtin::HashOf
- Inherits:
-
Object
- Object
- Contracts::Builtin::HashOf
- Defined in:
- lib/contracts/builtin_ext.rb
Instance Method Summary collapse
Instance Method Details
#generate(min: 0, max: 30) ⇒ Object
86 87 88 |
# File 'lib/contracts/builtin_ext.rb', line 86 def generate(min: 0, max: 30) Hash.generate(min: min, max: max, value_type: @value, key_type: @key) end |