Module: Konekt
- Defined in:
- lib/konekt/event.rb,
lib/konekt/railtie.rb,
lib/konekt/version.rb,
lib/konekt/listeners.rb,
lib/konekt/middleware.rb,
lib/konekt/configuration.rb
Defined Under Namespace
Classes: Configuration, Event, Middleware, Railtie
Constant Summary collapse
- VERSION =
'0.1.0'
- LISTENERS =
Hash.new
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
- .configure {|configuration| ... } ⇒ Object
- .propagate(event) ⇒ Object
- .subscribe(event_tag, &block) ⇒ Object
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
4 5 6 |
# File 'lib/konekt/configuration.rb', line 4 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
11 12 13 |
# File 'lib/konekt/configuration.rb', line 11 def self.configure yield(configuration) end |
.propagate(event) ⇒ Object
9 10 11 12 13 |
# File 'lib/konekt/listeners.rb', line 9 def self.propagate(event) event..each do |tag| Array(LISTENERS[tag]).each { |block| block.call event } end end |