Sha256: c75c96f7bc4b0c401057c134d4e0d5a4244d0926992ffa8d1bbd4eaf0b9dc157
Contents?: true
Size: 752 Bytes
Versions: 7
Compression:
Stored size: 752 Bytes
Contents
# -*- encoding : utf-8 -*- # Set Pattern: Type # class Card::Set::Type < Card::Set::Pattern::Base extend Card::Set::Pattern::Helper cattr_accessor :options class << self 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 end register "Type".underscore.to_sym, (options || {}) end # ~~ generated from /Users/ethan/dev/decko/gem/card/mod/core/set_pattern/03_type.rb ~~
Version data entries
7 entries across 7 versions & 1 rubygems