Class: SampleModels::AttributeSequence::AbstractSource
- Inherits:
-
Object
- Object
- SampleModels::AttributeSequence::AbstractSource
- Defined in:
- lib/sample_models/attribute_sequence.rb
Direct Known Subclasses
EmailSource, FirstPassBelongsToSource, InclusionSource, LengthSource, RequiredBelongsToSource, SecondPassBelongsToSource, SimpleSource
Instance Method Summary collapse
-
#initialize ⇒ AbstractSource
constructor
A new instance of AbstractSource.
- #next ⇒ Object
Constructor Details
#initialize ⇒ AbstractSource
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
#next ⇒ Object
42 43 44 45 |
# File 'lib/sample_models/attribute_sequence.rb', line 42 def next @number += 1 value end |