Class: Bits::BitReaderLocal
- Defined in:
- lib/bits/bit_reader/local.rb
Instance Method Summary collapse
-
#initialize(path) ⇒ BitReaderLocal
constructor
A new instance of BitReaderLocal.
- #read ⇒ Object
Constructor Details
#initialize(path) ⇒ BitReaderLocal
Returns a new instance of BitReaderLocal.
5 6 7 |
# File 'lib/bits/bit_reader/local.rb', line 5 def initialize(path) @path = path end |
Instance Method Details
#read ⇒ Object
9 10 11 |
# File 'lib/bits/bit_reader/local.rb', line 9 def read File.new(@path).read end |