Class: Bychar::ReaderBare

Inherits:
Object
  • Object
show all
Defined in:
lib/impls/reader_bare.rb

Overview

Bare reader that just proxies to an IO

Instance Method Summary collapse

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_charObject



9
10
11
# File 'lib/impls/reader_bare.rb', line 9

def read_one_char
  @io.read(1)
end