Class: Bane::Behaviors::Responders::NewlineResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/bane/behaviors/responders/newline_response.rb

Overview

Sends a newline character as the only response

Direct Known Subclasses

NewlineResponseForEachLine

Instance Method Summary collapse

Instance Method Details

#serve(io) ⇒ Object



9
10
11
# File 'lib/bane/behaviors/responders/newline_response.rb', line 9

def serve(io)
  io.write "\n"
end