Class: SimplePubSub::Client::PubSub::Echo
- Inherits:
-
Object
- Object
- SimplePubSub::Client::PubSub::Echo
- Defined in:
- lib/simplepubsub.rb
Instance Method Summary collapse
-
#initialize(&get_proc) ⇒ Echo
constructor
A new instance of Echo.
- #message(topic, message) ⇒ Object
Constructor Details
#initialize(&get_proc) ⇒ Echo
Returns a new instance of Echo.
19 20 21 |
# File 'lib/simplepubsub.rb', line 19 def initialize(&get_proc) @get_proc = get_proc end |
Instance Method Details
#message(topic, message) ⇒ Object
23 24 25 |
# File 'lib/simplepubsub.rb', line 23 def (topic, ) @get_proc.call topic, end |