Class: Bane::Behaviors::NewlineResponse

Inherits:
BasicBehavior show all
Defined in:
lib/bane/behaviors.rb

Overview

Sends a newline character as the only response

Direct Known Subclasses

NewlineResponseForEachLine

Instance Method Summary collapse

Methods inherited from BasicBehavior

inherited, simple_name

Instance Method Details

#serve(io, options) ⇒ Object



63
64
65
# File 'lib/bane/behaviors.rb', line 63

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