Class: Bushido::EventObserver
- Inherits:
-
Object
- Object
- Bushido::EventObserver
- Defined in:
- lib/bushido/event_observer.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
Returns the value of attribute params.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ EventObserver
constructor
A new instance of EventObserver.
Constructor Details
#initialize ⇒ EventObserver
Returns a new instance of EventObserver.
12 13 14 |
# File 'lib/bushido/event_observer.rb', line 12 def initialize @params ||= {} end |
Instance Attribute Details
#params ⇒ Object
Returns the value of attribute params.
3 4 5 |
# File 'lib/bushido/event_observer.rb', line 3 def params @params end |
Class Method Details
.inherited(klass) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/bushido/event_observer.rb', line 5 def self.inherited(klass) if Bushido::Platform.on_bushido? Bushido::Data.add_observer(klass.new) else end end |