Class: Evidence::SliceStream
- Inherits:
-
Object
- Object
- Evidence::SliceStream
- Defined in:
- lib/evidence/stream.rb
Instance Method Summary collapse
-
#initialize(index, start_index, end_index) ⇒ SliceStream
constructor
A new instance of SliceStream.
- #slice(stream) ⇒ Object
Constructor Details
#initialize(index, start_index, end_index) ⇒ SliceStream
Returns a new instance of SliceStream.
143 144 145 |
# File 'lib/evidence/stream.rb', line 143 def initialize(index, start_index, end_index) @index, @start_index, @end_index = index, start_index, end_index end |
Instance Method Details
#slice(stream) ⇒ Object
147 148 149 |
# File 'lib/evidence/stream.rb', line 147 def slice(stream) SlicedStreams.new(stream, @index, @start_index, @end_index) end |