Class: Card::Set::Rule

Inherits:
Pattern::Abstract
  • Object
show all
Defined in:
tmpsets/set_pattern/105-rule.rb,
tmpsets/set/mod022-rules/rule/rules.rb,
tmpsets/set/mod022-rules/rule/table.rb,
tmpsets/set/mod022-rules/rule/editor.rb,
tmpsets/set/mod022-rules/rule/rule_form.rb,
tmpsets/set/mod022-rules/rule/table_row.rb,
tmpsets/set/mod022-rules/rule/rule_form/buttons.rb,
tmpsets/set/mod022-rules/rule/bridge_rules_editor.rb,
tmpsets/set/mod022-rules/rule/rule_form/form_elements.rb,
tmpsets/set/mod022-rules/rule/rule_form/set_selection.rb,
tmpsets/set/mod022-rules/rule/rule_form/rule_set_radio.rb

Overview

Set Pattern: Rule

Defined Under Namespace

Modules: BridgeRulesEditor, Editor, RuleForm, Rules, Table, TableRow

Constant Summary collapse

@@options =
{ junction_only: true }

Class Method Summary collapse

Class Method Details

.label(_name) ⇒ Object



9
10
11
# File 'tmpsets/set_pattern/105-rule.rb', line 9

def label _name
  "All rule cards"
end

.pattern_applies?(card) ⇒ Boolean

Returns:

  • (Boolean)


21
22
23
# File 'tmpsets/set_pattern/105-rule.rb', line 21

def pattern_applies? card
  card.is_rule?
end

.prototype_args(_anchor) ⇒ Object



17
18
19
# File 'tmpsets/set_pattern/105-rule.rb', line 17

def prototype_args _anchor
  { name: "*all+*create" }
end

.short_label(_name) ⇒ Object



13
14
15
# File 'tmpsets/set_pattern/105-rule.rb', line 13

def short_label _name
  "all rule cards"
end