Sha256: 3f7ae39e91198366dd37190f37d7eb24c18cbbbc067a78154c093c5707544df5

Contents?: true

Size: 662 Bytes

Versions: 49

Compression:

Stored size: 662 Bytes

Contents

# -*- encoding : utf-8 -*-
class Card::Set::Type < Card::Set::Pattern::Abstract
  cattr_accessor :options
  class << self
# ~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/core/set_pattern/03_type.rb ~~

def label name
  %(All "#{name}" cards)
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

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


# ~~ below autogenerated; above pulled from /Users/ethan/dev/wagn/gem/card/mod/core/set_pattern/03_type.rb ~~
  end
  register "type", (options || {})
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
card-1.93.12 tmpsets/set_pattern/102-type.rb
card-1.93.11 tmpsets/set_pattern/102-type.rb
card-1.93.10 tmpsets/set_pattern/102-type.rb
card-1.93.9 tmpsets/set_pattern/102-type.rb
card-1.93.8 tmpsets/set_pattern/102-type.rb
card-1.93.7 tmpsets/set_pattern/102-type.rb
card-1.93.6 tmpsets/set_pattern/102-type.rb
card-1.93.5 tmpsets/set_pattern/102-type.rb
card-1.93.4 tmpsets/set_pattern/102-type.rb
card-1.93.3 tmpsets/set_pattern/102-type.rb
card-1.93.2 tmpsets/set_pattern/102-type.rb
card-1.93.1 tmpsets/set_pattern/102-type.rb
card-1.93.0 tmpsets/set_pattern/102-type.rb
card-1.92.2 tmpsets/set_pattern/102-type.rb
card-1.92.1 tmpsets/set_pattern/102-type.rb
card-1.92 tmpsets/set_pattern/102-type.rb
card-1.21.0 tmpsets/set_pattern/102-type.rb
card-1.20.4 tmpsets/set_pattern/102-type.rb
card-1.20.3 tmpsets/set_pattern/102-type.rb
card-1.20.2 tmpsets/set_pattern/102-type.rb