Class: Card::StageSubdirector

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

Constant Summary

Constants included from Stage

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

Instance Attribute Summary

Attributes inherited from StageDirector

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

Instance Method Summary collapse

Methods inherited from StageDirector

#call_after_store, #catch_up_to_stage, #integration_phase, #main_director, #need_act, #prepare_for_phases, #register, #storage_phase, #to_s, #unregister, #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.



252
253
254
# File 'lib/card/stage_director.rb', line 252

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

Instance Method Details

#deleteObject



256
257
258
259
# File 'lib/card/stage_director.rb', line 256

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