Class: Bane::ResponderMaker
- Inherits:
-
Object
- Object
- Bane::ResponderMaker
- Defined in:
- lib/bane/behavior_maker.rb
Instance Method Summary collapse
-
#initialize(responder) ⇒ ResponderMaker
constructor
A new instance of ResponderMaker.
- #make(port, host) ⇒ Object
Constructor Details
#initialize(responder) ⇒ ResponderMaker
Returns a new instance of ResponderMaker.
32 33 34 |
# File 'lib/bane/behavior_maker.rb', line 32 def initialize(responder) @responder = responder end |
Instance Method Details
#make(port, host) ⇒ Object
36 37 38 |
# File 'lib/bane/behavior_maker.rb', line 36 def make(port, host) Behaviors::Servers::ResponderServer.new(port, @responder.new, host) end |