Class: Card::RstarSet

Inherits:
SetPattern show all
Defined in:
tmpsets/set_pattern/104-rstar.rb

Constant Summary collapse

@@options =

~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/01_core/set_pattern/05_rstar.rb ~~~~~~~~~~~

{ junction_only: true }

Class Method Summary collapse

Methods inherited from SetPattern

#anchor_codenames, anchorless?, card_keys, find, #format_module_list, #initialize, #inspect, junction_only?, #lookup_module_list, #module_key, #module_list, new, pattern, #pattern, register, #rule_set_key, #safe_key, #to_s, write_tmp_file

Constructor Details

This class inherits a constructor from Card::SetPattern

Class Method Details

.follow_label(name) ⇒ Object



21
22
23
# File 'tmpsets/set_pattern/104-rstar.rb', line 21

def follow_label name
  'all "+*" cards'
end

.label(name) ⇒ Object



9
10
11
# File 'tmpsets/set_pattern/104-rstar.rb', line 9

def label name
  'All "+*" cards'
end

.pattern_applies?(card) ⇒ Boolean

Returns:

  • (Boolean)


17
18
19
# File 'tmpsets/set_pattern/104-rstar.rb', line 17

def pattern_applies? card
  card.cardname.rstar?
end

.prototype_args(anchor) ⇒ Object



13
14
15
# File 'tmpsets/set_pattern/104-rstar.rb', line 13

def prototype_args anchor
  { name: '*dummy+*dummy' }
end