Class: FactoryGirl::Sequence::EnumeratorAdapter Private
- Inherits:
-
Object
- Object
- FactoryGirl::Sequence::EnumeratorAdapter
- Defined in:
- lib/factory_girl/sequence.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
-
#initialize(value) ⇒ EnumeratorAdapter
constructor
private
A new instance of EnumeratorAdapter.
- #next ⇒ Object private
- #peek ⇒ Object private
Constructor Details
#initialize(value) ⇒ EnumeratorAdapter
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of EnumeratorAdapter.
35 36 37 |
# File 'lib/factory_girl/sequence.rb', line 35 def initialize(value) @value = value end |
Instance Method Details
#next ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
43 44 45 |
# File 'lib/factory_girl/sequence.rb', line 43 def next @value = @value.next end |
#peek ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
39 40 41 |
# File 'lib/factory_girl/sequence.rb', line 39 def peek @value end |