Method: Net::SFTP::Operations::File#readline
- Defined in:
- lib/net/sftp/operations/file.rb
#readline(sep_string = $/) ⇒ Object
Same as #gets, but raises EOFError if EOF is encountered before any data could be read.
110 111 112 113 114 |
# File 'lib/net/sftp/operations/file.rb', line 110 def readline(sep_string=$/) line = gets(sep_string) raise EOFError if line.nil? return line end |