tmpsets/set_pattern/104-rstar.rb in card-1.97.0.1 vs tmpsets/set_pattern/104-rstar.rb in card-1.98.0
- old
+ new
@@ -1,30 +1,28 @@
# -*- encoding : utf-8 -*-
+# Set Pattern: Rstar
+#
class Card::Set::Rstar < Card::Set::Pattern::Abstract
- cattr_accessor :options
- class << self
-# ~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/core/set_pattern/05_rstar.rb ~~
-
+cattr_accessor :options
+class << self
@@options = { junction_only: true }
def label _name
'All "+*" cards'
end
+def short_label _name
+ 'all "+*" cards'
+end
+
def prototype_args _anchor
{ name: "*dummy+*dummy" }
end
def pattern_applies? card
- card.cardname.rstar?
+ card.name.rstar?
end
+ end
+ register "Rstar".underscore.to_sym, (options || {})
+ end
-def follow_label _name
- 'all "+*" cards'
-end
-
-
-# ~~ below autogenerated; above pulled from /Users/ethan/dev/wagn/gem/card/mod/core/set_pattern/05_rstar.rb ~~
- end
- register "rstar", (options || {})
-end
-
+# ~~ generated from /Users/ethan/dev/decko/gem/card/mod/core/set_pattern/05_rstar.rb ~~