Class: Stilts::Stomp::BlockMessageHandler
- Inherits:
-
Object
- Object
- Stilts::Stomp::BlockMessageHandler
- Includes:
- orgorg.projectoddorg.projectodd.stiltsorg.projectodd.stilts.stomporg.projectodd.stilts.stomp.clientorg.projectodd.stilts.stomp.client::MessageHandler
- Defined in:
- lib/stilts/stomp/client.rb
Overview
– Client
Instance Method Summary collapse
- #handle(message) ⇒ Object
-
#initialize(block) ⇒ BlockMessageHandler
constructor
A new instance of BlockMessageHandler.
Constructor Details
#initialize(block) ⇒ BlockMessageHandler
Returns a new instance of BlockMessageHandler.
31 32 33 |
# File 'lib/stilts/stomp/client.rb', line 31 def initialize(block) @block = block end |
Instance Method Details
#handle(message) ⇒ Object
35 36 37 |
# File 'lib/stilts/stomp/client.rb', line 35 def handle() @block.call( StompMessage.new( ) ) end |