Class: Bychar::ReaderBare
- Inherits:
-
Object
- Object
- Bychar::ReaderBare
- Defined in:
- lib/impls/reader_bare.rb
Overview
Bare reader that just proxies to an IO
Instance Method Summary collapse
-
#initialize(io) ⇒ ReaderBare
constructor
:nodoc: :all.
- #read_one_char ⇒ Object
Constructor Details
#initialize(io) ⇒ ReaderBare
:nodoc: :all
5 6 7 |
# File 'lib/impls/reader_bare.rb', line 5 def initialize(io) @io = io end |
Instance Method Details
#read_one_char ⇒ Object
9 10 11 |
# File 'lib/impls/reader_bare.rb', line 9 def read_one_char @io.read(1) end |