class Lopata::World
Container for gobal non-configuration data
Attributes
scenarios[R]
Scenarios are selected for current run @return [Array<Lopata::Scenario::Execution>]
Public Class Methods
new()
click to toggle source
@private
# File lib/lopata/world.rb, line 8 def initialize @scenarios = [] end
Public Instance Methods
notify_observers(event, context)
click to toggle source
@private
# File lib/lopata/world.rb, line 13 def notify_observers(event, context) observers.each do |observer| observer.send event, context end end
Private Instance Methods
observers()
click to toggle source
Define observers based on configuration
# File lib/lopata/world.rb, line 22 def observers Lopata.configuration.observers end