Sha256: 4be9f99839dfdf0a82087b1842a5ddf38d279396a23cefc99d7a50e27c6431e1

Contents?: true

Size: 443 Bytes

Versions: 2

Compression:

Stored size: 443 Bytes

Contents

attr_writer :director
delegate :stage, to: :director

def director
  @director ||= Card::DirectorRegister.fetch self
end

def identify_action
  @action =
    case
    when trash     then :delete
    when new_card? then :create
    else :update
    end
end

def current_act= act
  raise Card::Error, "not allowed to override current act" if Card.current_act
  Card.current_act = act
end

def current_act
  @current_act ||= Card.current_act
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
card-1.19.1 mod/core/set/all/stages.rb
card-1.19.0 mod/core/set/all/stages.rb