lib/impls/reader_bare.rb in bychar-2.0.0 vs lib/impls/reader_bare.rb in bychar-3.0.0

- old
+ new

@@ -4,12 +4,10 @@ class ReaderBare #:nodoc: :all def initialize(io) @io = io end - def read_one_char! - b = @io.read(1) - raise Bychar::EOF if b.nil? - b + def read_one_char + @io.read(1) end end end \ No newline at end of file