Class: Card::ActManager::StageSubdirector

Inherits:
StageDirector show all
Defined in:
lib/card/act_manager/stage_director.rb

Constant Summary

Constants included from Stage

Card::ActManager::Stage::STAGES, Card::ActManager::Stage::STAGE_INDEX

Instance Attribute Summary

Attributes inherited from StageDirector

#act, #card, #main, #parent, #prior_store, #running, #stage, #subdirectors, #transact_in_stage

Instance Method Summary collapse

Methods inherited from StageDirector

#abort, #call_after_store, #catch_up_to_stage, #finished_stage?, #main_director, #need_act, #prepare_for_phases, #register, #replace_card, #rerun_up_to_current_stage, #reset_stage, #run_delayed_event, #to_s, #unregister, #update_card

Methods included from Card::ActManager::StageDirector::Phases

#integration_phase, #storage_phase, #validation_phase

Methods included from Stage

#after?, #before?, #in?, #stage_index, #stage_ok?, #stage_symbol

Constructor Details

#initialize(card, opts = {}) ⇒ StageSubdirector

Returns a new instance of StageSubdirector.



309
310
311
# File 'lib/card/act_manager/stage_director.rb', line 309

def initialize card, opts={}
  super card, opts, false
end

Instance Method Details

#deleteObject



313
314
315
316
# File 'lib/card/act_manager/stage_director.rb', line 313

def delete
  @parent.subdirectors.delete self if @parent
  super
end