Sha256: 8f2ef3a404ae71de82ef745221557365d84d4c236362de59d13405e5b647a74b

Contents?: true

Size: 395 Bytes

Versions: 35

Compression:

Stored size: 395 Bytes

Contents

load "card/set/type.rb" # "load" not "require" so pattern reloads properly

def label name
  %(All "#{name}" cards)
end

def short_label name
  %(all "#{name}s")
end

def generic_label
  "cards of a given type"
end

def prototype_args anchor
  { type: anchor }
end

def pattern_applies? card
  !!card.type_id
end

def anchor_name card
  card.type_name
end

def anchor_id card
  card.type_id
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
card-1.108.1 mod/core/set_pattern/03_type.rb
card-1.108.0 mod/core/set_pattern/03_type.rb
card-1.107.0 mod/core/set_pattern/03_type.rb
card-1.106.0 mod/core/set_pattern/03_type.rb
card-1.105.6 mod/core/set_pattern/03_type.rb
card-1.105.5 mod/core/set_pattern/03_type.rb
card-1.105.4 mod/core/set_pattern/03_type.rb
card-1.105.3 mod/core/set_pattern/03_type.rb
card-1.105.2.pre1 mod/core/set_pattern/03_type.rb
card-1.105.2 mod/core/set_pattern/03_type.rb
card-1.105.1 mod/core/set_pattern/03_type.rb
card-1.105.0 mod/core/set_pattern/03_type.rb
card-1.104.2 mod/core/set_pattern/03_type.rb
card-1.104.1 mod/core/set_pattern/03_type.rb
card-1.104.0 mod/core/set_pattern/03_type.rb
card-1.103.4 mod/core/set_pattern/03_type.rb
card-1.103.3 mod/core/set_pattern/03_type.rb
card-1.103.2 mod/core/set_pattern/03_type.rb
card-1.103.1 mod/core/set_pattern/03_type.rb
card-1.103.0 mod/core/set_pattern/03_type.rb