Class: BBServer::Handler
- Inherits:
-
Object
- Object
- BBServer::Handler
- Defined in:
- lib/bbserver/handler.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
- #handle ⇒ Object
-
#initialize(context) ⇒ Handler
constructor
A new instance of Handler.
Constructor Details
#initialize(context) ⇒ Handler
Returns a new instance of Handler.
7 8 9 |
# File 'lib/bbserver/handler.rb', line 7 def initialize(context) @context = context end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
5 6 7 |
# File 'lib/bbserver/handler.rb', line 5 def context @context end |
Instance Method Details
#handle ⇒ Object
11 12 13 |
# File 'lib/bbserver/handler.rb', line 11 def handle raise NotImplementedError end |