Module: Announcer::Mixins::HasInstance
- Included in:
- Event, Plugins::Plugin, Publishers::Publisher, Subscription
- Defined in:
- lib/announcer/mixins/has_instance.rb
Instance Method Summary collapse
Instance Method Details
#instance ⇒ Object
4 5 6 |
# File 'lib/announcer/mixins/has_instance.rb', line 4 def instance (defined?(@instance) && @instance) || Announcer.instance end |
#plugins ⇒ Object
8 9 10 |
# File 'lib/announcer/mixins/has_instance.rb', line 8 def plugins instance.send(:plugins) end |