class DiscardReader
Public Class Methods
new(input)
click to toggle source
# File lib/datalackeylib.rb, line 615 def initialize(input) @input = input return if input.nil? @reader = Thread.new do loop do @input.readpartial(32768) rescue IOError break # It is possible that close happens in another thread. rescue EOFError break end end end
Public Instance Methods
close()
click to toggle source
# File lib/datalackeylib.rb, line 629 def close return if @input.nil? @input.close @reader.join end
getlines()
click to toggle source
# File lib/datalackeylib.rb, line 635 def getlines [] end