Class: Pacer::Core::Route::DetachedPipe
- Inherits:
-
Object
- Object
- Pacer::Core::Route::DetachedPipe
- Defined in:
- lib/pacer/core/route.rb
Instance Attribute Summary collapse
-
#collection ⇒ Object
readonly
Returns the value of attribute collection.
-
#expando ⇒ Object
readonly
Returns the value of attribute expando.
-
#pipe ⇒ Object
readonly
Returns the value of attribute pipe.
Instance Method Summary collapse
-
#initialize(expando, pipe, collection) ⇒ DetachedPipe
constructor
A new instance of DetachedPipe.
- #read(element) ⇒ Object
Constructor Details
#initialize(expando, pipe, collection) ⇒ DetachedPipe
Returns a new instance of DetachedPipe.
679 680 681 682 683 |
# File 'lib/pacer/core/route.rb', line 679 def initialize(, pipe, collection) @expando = @pipe = pipe @collection = collection end |
Instance Attribute Details
#collection ⇒ Object (readonly)
Returns the value of attribute collection.
677 678 679 |
# File 'lib/pacer/core/route.rb', line 677 def collection @collection end |
#expando ⇒ Object (readonly)
Returns the value of attribute expando.
677 678 679 |
# File 'lib/pacer/core/route.rb', line 677 def @expando end |
#pipe ⇒ Object (readonly)
Returns the value of attribute pipe.
677 678 679 |
# File 'lib/pacer/core/route.rb', line 677 def pipe @pipe end |
Instance Method Details
#read(element) ⇒ Object
685 686 687 688 689 690 691 692 693 |
# File 'lib/pacer/core/route.rb', line 685 def read(element) pipe.reset unless collection .add element if pipe.hasNext pipe.next elsif collection [] end end |