module Bane::Behaviors::Responders::ForEachLine

This module can be used to wrap another behavior with a “while(io.gets)” loop, which reads a line from the input and then performs the given behavior.

Public Instance Methods

serve(io) click to toggle source
Calls superclass method
# File lib/bane/behaviors/responders/for_each_line.rb, line 11
def serve(io)
  while (io.gets)
    super(io)
  end
end