Class: SetPartition::FixedGenerator
- Defined in:
- lib/set_partition/fixed_generator.rb
Instance Attribute Summary
Attributes inherited from Generator
Instance Method Summary collapse
-
#initialize(length, partition) ⇒ FixedGenerator
constructor
A new instance of FixedGenerator.
Methods inherited from Generator
#end, #length, #next, #prev, #start
Constructor Details
#initialize(length, partition) ⇒ FixedGenerator
Returns a new instance of FixedGenerator.
3 4 5 6 |
# File 'lib/set_partition/fixed_generator.rb', line 3 def initialize length, partition @partition = partition super length end |