class A4Tools::StandardInput
Public Instance Methods
read()
click to toggle source
# File lib/net_shell/io.rb, line 100 def read begin STDIN.read_nonblock(256) rescue IO::WaitReadable "" rescue EOFError nil end end
read_all()
click to toggle source
# File lib/net_shell/io.rb, line 110 def read_all buffer = "" while (line = read) != nil buffer += line end buffer.chomp end