Class: Card::Set::Rstar
- Inherits:
-
Pattern::Abstract
- Object
- Pattern::Abstract
- Card::Set::Rstar
- Defined in:
- tmpsets/set_pattern/104-rstar.rb,
tmpsets/set/mod022-rules/rstar/rule_user.rb
Overview
Set Pattern: Rstar
Defined Under Namespace
Modules: RuleUser
Constant Summary collapse
- @@options =
{ junction_only: true }
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
9 10 11 |
# File 'tmpsets/set_pattern/104-rstar.rb', line 9 def label _name 'All "+*" cards' end |
.pattern_applies?(card) ⇒ Boolean
21 22 23 |
# File 'tmpsets/set_pattern/104-rstar.rb', line 21 def pattern_applies? card card.name.rstar? end |
.prototype_args(_anchor) ⇒ Object
17 18 19 |
# File 'tmpsets/set_pattern/104-rstar.rb', line 17 def prototype_args _anchor { name: "*dummy+*dummy" } end |
.short_label(_name) ⇒ Object
13 14 15 |
# File 'tmpsets/set_pattern/104-rstar.rb', line 13 def short_label _name 'all "+*" cards' end |