Class: Bane::Behaviors::FixedResponse
- Inherits:
-
BasicBehavior
- Object
- BasicBehavior
- Bane::Behaviors::FixedResponse
- Defined in:
- lib/bane/behaviors.rb
Overview
Sends a static response.
Options:
- message: The response message to send. Default: "Hello, world!"
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from BasicBehavior
Instance Method Details
#serve(io, options) ⇒ Object
50 51 52 53 54 |
# File 'lib/bane/behaviors.rb', line 50 def serve(io, ) = {:message => "Hello, world!"}.merge() io.write [:message] end |