Class: Card::TypePlusRightSet
- Inherits:
-
SetPattern
- Object
- SetPattern
- Card::TypePlusRightSet
- Defined in:
- tmpsets/set_pattern/106-type_plus_right.rb
Constant Summary collapse
- @@options =
~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/01_core/set_pattern/07_type_plus_right.rb ~~~~~~~~~~~
{ :junction_only=>true, :assigns_type=>true, :anchor_parts_count=>2 }
Class Method Summary collapse
- .anchor_name(card) ⇒ Object
- .follow_label(name) ⇒ Object
- .label(name) ⇒ Object
- .prototype_args(anchor) ⇒ Object
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
21 22 23 24 25 |
# File 'tmpsets/set_pattern/106-type_plus_right.rb', line 21 def anchor_name card left = card.left type_name = (left && left.type_name) || Card[ Card.default_type_id ].name "#{type_name}+#{card.cardname.tag}" end |
.follow_label(name) ⇒ Object
27 28 29 |
# File 'tmpsets/set_pattern/106-type_plus_right.rb', line 27 def follow_label name %{all "+#{name.to_name.tag}" on "#{name.to_name.left_name}s"} end |
.label(name) ⇒ Object
13 14 15 |
# File 'tmpsets/set_pattern/106-type_plus_right.rb', line 13 def label name %{All "+#{name.to_name.tag}" cards on "#{name.to_name.left_name}" cards} end |