Sha256: 40241a963032615d6b72b577aedf81fed9a3622635e0e25e3dd306d1068c9541
Contents?: true
Size: 932 Bytes
Versions: 5
Compression:
Stored size: 932 Bytes
Contents
# -*- encoding : utf-8 -*- # Set Pattern: TypePlusRight # # Patterned field names on a specific type class Card::Set::TypePlusRight < Card::Set::Pattern::Base cattr_accessor :options class << self @@options = { junction_only: true, assigns_type: true, anchor_parts_count: 2 } def label name name = name.to_name %(All "+#{name.tag}" cards on "#{name.left}" cards) end def short_label name name = name.to_name %(all "+#{name.tag}" on "#{name.left}s") end def generic_label "given field cards on a given type" end def prototype_args anchor { name: "+#{anchor.tag}", supercard: Card.new(name: "*dummy", type: anchor.trunk_name) } end def anchor_name card "#{left_type(card)}+#{card.name.tag}" end end register "TypePlusRight".underscore.to_sym, (options || {}) end # ~~ generated from /Users/philipp/dev/decko/gem/card/mod/core/set_pattern/08_type_plus_right.rb ~~
Version data entries
5 entries across 5 versions & 1 rubygems