Class: Vertx::InternalHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/vertx/event_bus.rb

Instance Method Summary collapse

Constructor Details

#initialize(hndlr) ⇒ InternalHandler

Returns a new instance of InternalHandler.



159
160
161
# File 'lib/vertx/event_bus.rb', line 159

def initialize(hndlr)
  @hndlr = hndlr
end

Instance Method Details

#handle(message) ⇒ Object



163
164
165
# File 'lib/vertx/event_bus.rb', line 163

def handle(message)
  @hndlr.call(Message.new(message))
end