Module: ActiveWorker::Behavior::HasModes::ClassExtensions

Defined in:
lib/active_worker/behavior/has_modes.rb

Instance Method Summary collapse

Instance Method Details

#add_mode(*args) ⇒ Object



18
19
20
# File 'lib/active_worker/behavior/has_modes.rb', line 18

def add_mode(*args)
  modes_map.add_mode(*args)
end

#modesObject



14
15
16
# File 'lib/active_worker/behavior/has_modes.rb', line 14

def modes
  modes_map.modes
end

#modes_mapObject



10
11
12
# File 'lib/active_worker/behavior/has_modes.rb', line 10

def modes_map
  @modes_map ||= ModesMap.new
end