Class: Contracts::Builtin::CollectionOf

Inherits:
Object
  • Object
show all
Defined in:
lib/contracts/builtin_ext.rb

Instance Method Summary collapse

Instance Method Details

#generate(min: 0, max: 30) ⇒ Object



80
81
82
# File 'lib/contracts/builtin_ext.rb', line 80

def generate(min: 0, max: 30)
  @collection_class.generate(min: min, max: max, type: @contract)
end