Class: Onuro::EngineConfiguration
- Inherits:
-
Object
- Object
- Onuro::EngineConfiguration
- Defined in:
- lib/onuro/engine_configuration.rb
Instance Attribute Summary collapse
-
#events ⇒ Object
readonly
Returns the value of attribute events.
Instance Method Summary collapse
- #add_event(event_name) ⇒ Object
-
#initialize ⇒ EngineConfiguration
constructor
A new instance of EngineConfiguration.
Constructor Details
#initialize ⇒ EngineConfiguration
Returns a new instance of EngineConfiguration.
7 8 9 |
# File 'lib/onuro/engine_configuration.rb', line 7 def initialize @events = Hash.new(0) end |
Instance Attribute Details
#events ⇒ Object (readonly)
Returns the value of attribute events.
5 6 7 |
# File 'lib/onuro/engine_configuration.rb', line 5 def events @events end |
Instance Method Details
#add_event(event_name) ⇒ Object
11 12 13 14 |
# File 'lib/onuro/engine_configuration.rb', line 11 def add_event(event_name) event = EventBuilder.build(event_name) events[event.name] = event end |