Class: SampleModels::AttributeSequence::AbstractSource

Inherits:
Object
  • Object
show all
Defined in:
lib/sample_models/attribute_sequence.rb

Instance Method Summary collapse

Constructor Details

#initializeAbstractSource

Returns a new instance of AbstractSource.



38
39
40
# File 'lib/sample_models/attribute_sequence.rb', line 38

def initialize
  @number = 0
end

Instance Method Details

#nextObject



42
43
44
45
# File 'lib/sample_models/attribute_sequence.rb', line 42

def next
  @number += 1
  value
end