Method: Ftpd::Stream#initialize

Defined in:
lib/ftpd/stream.rb

#initialize(io, data_type) ⇒ Stream

Returns a new instance of Stream.

Parameters:

  • io (IO)

    The stream to read from or write to

  • data_type (String)

    The FTP data type of the stream



13
14
15
16
# File 'lib/ftpd/stream.rb', line 13

def initialize(io, data_type)
  @io, @data_type = io, data_type
  @byte_count = 0
end