Class: IO

Inherits:
Object show all
Defined in:
lib/rmtools/fs/io.rb

Instance Method Summary collapse

Instance Method Details

#gets2Object



6
7
8
9
10
# File 'lib/rmtools/fs/io.rb', line 6

def gets2
  str = ''
  str << (c = read 1) until c and "\r\n\b".include? c or eof?
  str 
end