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.99.6 tmpsets/set_pattern/102-type.rb
card-1.99.5 tmpsets/set_pattern/102-type.rb
card-1.97.0.1 tmpsets/set_pattern/102-type.rb
card-1.97.0 tmpsets/set_pattern/102-type.rb
card-1.96.8 tmpsets/set_pattern/102-type.rb
card-1.96.7 tmpsets/set_pattern/102-type.rb
card-1.96.6 tmpsets/set_pattern/102-type.rb
card-1.96.5 tmpsets/set_pattern/102-type.rb
card-1.96.4 tmpsets/set_pattern/102-type.rb
card-1.96.3 tmpsets/set_pattern/102-type.rb
card-1.96.2 tmpsets/set_pattern/102-type.rb
card-1.96.1 tmpsets/set_pattern/102-type.rb
card-1.96.0 tmpsets/set_pattern/102-type.rb
card-1.95.3 tmpsets/set_pattern/102-type.rb
card-1.95.2 tmpsets/set_pattern/102-type.rb
card-1.95.1 tmpsets/set_pattern/102-type.rb
card-1.95.0 tmpsets/set_pattern/102-type.rb
card-1.94.1 tmpsets/set_pattern/102-type.rb
card-1.94.0 tmpsets/set_pattern/102-type.rb
card-1.93.13 tmpsets/set_pattern/102-type.rb