class Dependencies

Dependencies container that is accessed from everywhere in the app

Attributes

event_manager[RW]

Public Class Methods

new() click to toggle source
# File lib/gimuby/dependencies.rb, line 9
def initialize
  @event_manager = EventManager.new

  # problem specific
  @tsp = nil
  @foxholes = nil
end

Public Instance Methods

foxholes() click to toggle source
# File lib/gimuby/dependencies.rb, line 28
def foxholes
  if @foxholes.nil?
    @foxholes = Foxholes.new
  end
  @foxholes
end
tsp() click to toggle source

problem specific

# File lib/gimuby/dependencies.rb, line 21
def tsp
  if @tsp.nil?
    @tsp = Tsp.new
  end
  @tsp
end