Class: Immutable::Stream::Pair
- Inherits:
-
Object
- Object
- Immutable::Stream::Pair
- Defined in:
- lib/immutable/stream.rb
Instance Attribute Summary (collapse)
-
- (Object) head
readonly
Returns the value of attribute head.
-
- (Object) tail
readonly
Returns the value of attribute tail.
Instance Method Summary (collapse)
-
- (Pair) initialize(head, tail)
constructor
A new instance of Pair.
Constructor Details
- (Pair) initialize(head, tail)
A new instance of Pair
43 44 45 46 |
# File 'lib/immutable/stream.rb', line 43 def initialize(head, tail) @head = head @tail = tail end |
Instance Attribute Details
- (Object) head (readonly)
Returns the value of attribute head
41 42 43 |
# File 'lib/immutable/stream.rb', line 41 def head @head end |
- (Object) tail (readonly)
Returns the value of attribute tail
41 42 43 |
# File 'lib/immutable/stream.rb', line 41 def tail @tail end |