Sha256: 48a6dd33eab95216c316b6cad8a2a9f21208baee27953632ec2e2a8fddf350ce

Contents?: true

Size: 691 Bytes

Versions: 5

Compression:

Stored size: 691 Bytes

Contents

# -*- encoding : utf-8 -*-
class Card::TypeSet < Card::SetPattern
  cattr_accessor :options
  class << self
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/01_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/01_core/set_pattern/03_type.rb ~~~~~~~~~~~
  end
  register "type", (options || {})
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
card-1.16.6 tmpsets/set_pattern/102-type.rb
card-1.16.5 tmpsets/set_pattern/102-type.rb
card-1.16.4 tmpsets/set_pattern/102-type.rb
card-1.16.3 tmpsets/set_pattern/102-type.rb
card-1.16.2 tmpsets/set_pattern/102-type.rb