Class: Card::RightSet

Inherits:
SetPattern show all
Defined in:
tmpsets/set_pattern/105-right.rb

Constant Summary collapse

@@options =

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

{
  junction_only: true,
  assigns_type: 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, pattern_applies?, register, #rule_set_key, #safe_key, #to_s, write_tmp_file

Constructor Details

This class inherits a constructor from Card::SetPattern

Class Method Details

.anchor_name(card) ⇒ Object



20
21
22
# File 'tmpsets/set_pattern/105-right.rb', line 20

def anchor_name card
  card.cardname.tag
end

.follow_label(name) ⇒ Object



24
25
26
# File 'tmpsets/set_pattern/105-right.rb', line 24

def follow_label name
   %{all "+#{name}s"}
end

.label(name) ⇒ Object



12
13
14
# File 'tmpsets/set_pattern/105-right.rb', line 12

def label name
  %{All "+#{name}" cards}
end

.prototype_args(anchor) ⇒ Object



16
17
18
# File 'tmpsets/set_pattern/105-right.rb', line 16

def prototype_args anchor
  { name: "*dummy+#{anchor}" }
end