Class: SetPartition::FixedGenerator

Inherits:
Generator
  • Object
show all
Defined in:
lib/set_partition/fixed_generator.rb

Instance Attribute Summary

Attributes inherited from Generator

#current

Instance Method Summary collapse

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