Class: Bane::ResponderMaker

Inherits:
Object
  • Object
show all
Defined in:
lib/bane/behavior_maker.rb

Instance Method Summary collapse

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