Module: ActionController::CGIHandler::ProperStream

Defined in:
lib/action_controller/cgi_process.rb

Instance Method Summary collapse

Instance Method Details

#eachObject



6
7
8
9
10
# File 'lib/action_controller/cgi_process.rb', line 6

def each
  while line = gets
    yield line
  end
end

#read(*args) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/action_controller/cgi_process.rb', line 12

def read(*args)
  if args.empty?
    super || ""
  else
    super
  end
end