class HighLine::Test::PartialReader
Wraps a pipe, supplying a non-blocking gets
method
Attributes
stream[R]
Public Class Methods
new(stream)
click to toggle source
# File lib/highline/test/partial_reader.rb, line 6 def initialize(stream) @stream = stream end
Public Instance Methods
gets()
click to toggle source
# File lib/highline/test/partial_reader.rb, line 10 def gets stream.readpartial(PIPE_BUFFER_SIZE) end