Class: Helpers::BaseStreamView
- Inherits:
-
Object
- Object
- Helpers::BaseStreamView
- Extended by:
- Forwardable
- Includes:
- BinaryExtensions
- Defined in:
- lib/file_data/helpers/stream_view.rb
Overview
Abstract view of a stream
Direct Known Subclasses
Instance Attribute Summary collapse
-
#start_pos ⇒ Object
readonly
Returns the value of attribute start_pos.
-
#stream ⇒ Object
readonly
Returns the value of attribute stream.
Instance Method Summary collapse
-
#initialize(stream, start_pos) ⇒ BaseStreamView
constructor
A new instance of BaseStreamView.
Methods included from BinaryExtensions
Constructor Details
#initialize(stream, start_pos) ⇒ BaseStreamView
Returns a new instance of BaseStreamView.
12 13 14 15 |
# File 'lib/file_data/helpers/stream_view.rb', line 12 def initialize(stream, start_pos) @stream = stream @start_pos = start_pos end |
Instance Attribute Details
#start_pos ⇒ Object (readonly)
Returns the value of attribute start_pos.
10 11 12 |
# File 'lib/file_data/helpers/stream_view.rb', line 10 def start_pos @start_pos end |
#stream ⇒ Object (readonly)
Returns the value of attribute stream.
10 11 12 |
# File 'lib/file_data/helpers/stream_view.rb', line 10 def stream @stream end |