Class: Card::Set::Rule

Inherits:
Pattern::Base show all
Extended by:
Pattern::Helper
Defined in:
card/tmpsets/set_pattern/105-rule.rb,
card/tmpsets/set/mod036-card-mod-rules/rule/rules.rb,
card/tmpsets/set/mod036-card-mod-rules/rule/editor.rb,
card/tmpsets/set/mod036-card-mod-rules/rule/bar_view.rb,
card/tmpsets/set/mod036-card-mod-rules/rule/rule_form.rb,
card/tmpsets/set/mod036-card-mod-rules/rule/html_views.rb,
card/tmpsets/set/mod036-card-mod-rules/rule/quick_editor.rb,
card/tmpsets/set/mod036-card-mod-rules/rule/rule_form/buttons.rb,
card/tmpsets/set/mod036-card-mod-rules/rule/bridge_rules_editor.rb,
card/tmpsets/set/mod036-card-mod-rules/rule/rule_form/form_elements.rb,
card/tmpsets/set/mod036-card-mod-rules/rule/rule_form/set_selection.rb,
card/tmpsets/set/mod036-card-mod-rules/rule/rule_form/rule_set_radio.rb,
card/tmpsets/set/mod037-card-mod-rules/rule/rules.rb,
card/tmpsets/set/mod037-card-mod-rules/rule/editor.rb,
card/tmpsets/set/mod037-card-mod-rules/rule/bar_view.rb,
card/tmpsets/set/mod037-card-mod-rules/rule/rule_form.rb,
card/tmpsets/set/mod037-card-mod-rules/rule/html_views.rb,
card/tmpsets/set/mod037-card-mod-rules/rule/quick_editor.rb,
card/tmpsets/set/mod037-card-mod-rules/rule/rule_form/buttons.rb,
card/tmpsets/set/mod037-card-mod-rules/rule/bridge_rules_editor.rb,
card/tmpsets/set/mod037-card-mod-rules/rule/rule_form/form_elements.rb,
card/tmpsets/set/mod037-card-mod-rules/rule/rule_form/set_selection.rb,
card/tmpsets/set/mod037-card-mod-rules/rule/rule_form/rule_set_radio.rb

Overview

Set Pattern: Rule

Defined Under Namespace

Modules: BarView, BridgeRulesEditor, Editor, HtmlViews, QuickEditor, RuleForm, Rules

Constant Summary collapse

@@options =
{ junction_only: true }

Instance Attribute Summary

Attributes included from Pattern::ClassMethods

#anchor_parts_count, #anchorless, #assigns_type, #junction_only, #pattern_code, #pattern_id

Class Method Summary collapse

Methods inherited from Pattern::Base

#anchor_codenames, #anchor_parts, #anchor_parts_count, #find_anchor_id, #format_module_list, #initialize, #inspect, #lookup_module_list, #module_key, #module_list, #pattern, #rule_set_key, #safe_key, #to_s

Methods included from Pattern::ClassMethods

#anchorless?, #generic_label, #junction_only?, #module_key, #new, #pattern, #pattern_applies?, #register

Constructor Details

This class inherits a constructor from Card::Set::Pattern::Base

Class Method Details

.label(_name) ⇒ Object



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

def label _name
  "All rule cards"
end

.pattern_applies?(card) ⇒ Boolean

Returns:

  • (Boolean)


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

def pattern_applies? card
  card.is_rule?
end

.prototype_args(_anchor) ⇒ Object



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

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

.short_label(_name) ⇒ Object



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

def short_label _name
  "all rule cards"
end