Class: Net::FTP::BufferedSocket
Do not use. This class is for internal use only.
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
BufferedIO
|
|
Instance Chain:
self,
BufferedIO
|
|
Inherits: |
BufferedIO
|
Defined in: | lib/net/ftp.rb |
Instance Method Summary
Instance Method Details
#gets
[ GitHub ]# File 'lib/net/ftp.rb', line 1530
def gets line = readuntil("\n", true) return line.empty? ? nil : line end
#read(len = nil)
[ GitHub ]# File 'lib/net/ftp.rb', line 1516
def read(len = nil) if len s = super(len, String.new, true) return s.empty? ? nil : s else result = String.new while s = super(DEFAULT_BLOCKSIZE, String.new, true) break if s.empty? result << s end return result end end
#readline
[ GitHub ]# File 'lib/net/ftp.rb', line 1535
def readline line = gets if line.nil? raise EOFError, "end of file reached" end return line end