Module: Omnes::Subscriber::InstanceMethods
- Defined in:
- lib/omnes/subscriber.rb
Overview
Instance methods included in a Omnes::Subscriber
Instance Method Summary collapse
-
#subscribe_to(bus) ⇒ Omnes::Subscriber::Subscribers
Subscribes event handlers to a bus.
Instance Method Details
#subscribe_to(bus) ⇒ Omnes::Subscriber::Subscribers
Subscribes event handlers to a bus
184 185 186 |
# File 'lib/omnes/subscriber.rb', line 184 def subscribe_to(bus) self.class.instance_variable_get(:@_state).public_send(:call, bus, self) end |