Class: Card::Set::Star
- Inherits:
-
Pattern::Abstract
- Object
- Pattern::Abstract
- Card::Set::Star
- Defined in:
- tmpsets/set_pattern/103-star.rb
Overview
Set Pattern: Star
Class Method Summary collapse
- .label(_name) ⇒ Object
- .pattern_applies?(card) ⇒ Boolean
- .prototype_args(_anchor) ⇒ Object
- .short_label(_name) ⇒ Object
Class Method Details
.label(_name) ⇒ Object
7 8 9 |
# File 'tmpsets/set_pattern/103-star.rb', line 7 def label _name 'All "*" cards' end |
.pattern_applies?(card) ⇒ Boolean
19 20 21 |
# File 'tmpsets/set_pattern/103-star.rb', line 19 def pattern_applies? card card.name.star? end |
.prototype_args(_anchor) ⇒ Object
15 16 17 |
# File 'tmpsets/set_pattern/103-star.rb', line 15 def prototype_args _anchor { name: "*dummy" } end |
.short_label(_name) ⇒ Object
11 12 13 |
# File 'tmpsets/set_pattern/103-star.rb', line 11 def short_label _name 'all "*" cards' end |