class FTPMVC::Ftpd::Input

Public Class Methods

new(stream) click to toggle source
# File lib/ftpmvc/ftpd/input.rb, line 9
def initialize(stream)
  @stream = stream
end

Public Instance Methods

read() { |chunk| ... } click to toggle source
# File lib/ftpmvc/ftpd/input.rb, line 13
def read
  while chunk = @stream.read
    yield chunk
  end
end