Class: Onuro::EngineConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/onuro/engine_configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEngineConfiguration

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

#eventsObject (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