Class: Card::Set::Right

Inherits:
Pattern::Base show all
Extended by:
Pattern::Helper
Defined in:
card/tmpsets/set_pattern/106-right.rb,
card/tmpsets/set/mod003-settings/right/autoname.rb,
card/tmpsets/set/mod005-card-mod-email/right/cc.rb,
card/tmpsets/set/mod005-card-mod-email/right/to.rb,
card/tmpsets/set/mod005-card-mod-email/right/bcc.rb,
card/tmpsets/set/mod027-card-mod-help/right/help.rb,
card/tmpsets/set/mod005-card-mod-email/right/from.rb,
card/tmpsets/set/mod027-card-mod-help/right/guide.rb,
card/tmpsets/set/mod036-card-mod-rules/right/self.rb,
card/tmpsets/set/mod019-card-mod-style/right/style.rb,
card/tmpsets/set/mod030-card-mod-layout/right/head.rb,
card/tmpsets/set/mod011-card-mod-account/right/salt.rb,
card/tmpsets/set/mod035-card-mod-search/right/mates.rb,
card/tmpsets/set/mod035-card-mod-search/right/nests.rb,
card/tmpsets/set/mod039-card-mod-monkey/right/debug.rb,
card/tmpsets/set/mod005-card-mod-email/right/subject.rb,
card/tmpsets/set/mod011-card-mod-account/right/email.rb,
card/tmpsets/set/mod011-card-mod-account/right/roles.rb,
card/tmpsets/set/mod017-card-mod-script/right/script.rb,
card/tmpsets/set/mod025-card-mod-follow/right/follow.rb,
card/tmpsets/set/mod035-card-mod-search/right/edited.rb,
card/tmpsets/set/mod035-card-mod-search/right/follow.rb,
card/tmpsets/set/mod011-card-mod-account/right/status.rb,
card/tmpsets/set/mod025-card-mod-follow/right/account.rb,
card/tmpsets/set/mod035-card-mod-search/right/created.rb,
card/tmpsets/set/mod035-card-mod-search/right/editors.rb,
card/tmpsets/set/mod007-card-mod-content/right/default.rb,
card/tmpsets/set/mod011-card-mod-account/right/account.rb,
card/tmpsets/set/mod011-card-mod-account/right/api_key.rb,
card/tmpsets/set/mod012-card-mod-edit/right/input_type.rb,
card/tmpsets/set/mod022-card-mod-comment/right/comment.rb,
card/tmpsets/set/mod035-card-mod-search/right/children.rb,
card/tmpsets/set/mod035-card-mod-search/right/links_to.rb,
card/tmpsets/set/mod010-card-mod-permissions/right/read.rb,
card/tmpsets/set/mod011-card-mod-account/right/password.rb,
card/tmpsets/set/mod025-card-mod-follow/right/followers.rb,
card/tmpsets/set/mod025-card-mod-follow/right/following.rb,
card/tmpsets/set/mod035-card-mod-search/right/nested_by.rb,
card/tmpsets/set/mod035-card-mod-search/right/refers_to.rb,
card/tmpsets/set/mod007-card-mod-content/right/structure.rb,
card/tmpsets/set/mod023-card-mod-date/right/when_created.rb,
card/tmpsets/set/mod005-card-mod-email/right/html_message.rb,
card/tmpsets/set/mod005-card-mod-email/right/text_message.rb,
card/tmpsets/set/mod010-card-mod-permissions/right/create.rb,
card/tmpsets/set/mod010-card-mod-permissions/right/delete.rb,
card/tmpsets/set/mod010-card-mod-permissions/right/update.rb,
card/tmpsets/set/mod022-card-mod-comment/right/discussion.rb,
card/tmpsets/set/mod035-card-mod-search/right/linked_to_by.rb,
card/tmpsets/set/mod009-card-mod-list/right/content_options.rb,
card/tmpsets/set/mod025-card-mod-follow/right/follow_fields.rb,
card/tmpsets/set/mod030-card-mod-layout/right/enabled_roles.rb,
card/tmpsets/set/mod011-card-mod-account/right/account/views.rb,
card/tmpsets/set/mod023-card-mod-date/right/when_last_edited.rb,
card/tmpsets/set/mod035-card-mod-search/right/referred_to_by.rb,
card/tmpsets/set/mod036-card-mod-rules/right/type_plus_right.rb,
card/tmpsets/set/mod011-card-mod-account/right/account/events.rb,
card/tmpsets/set/mod016-card-mod-machines/right/machine_cache.rb,
card/tmpsets/set/mod016-card-mod-machines/right/machine_input.rb,
card/tmpsets/set/mod016-card-mod-machines/right/machine_output.rb,
card/tmpsets/set/mod009-card-mod-list/right/content_option_view.rb,
card/tmpsets/set/mod002-core/right/autoname.rb,
card/tmpsets/set/mod004-card-mod-email/right/cc.rb,
card/tmpsets/set/mod004-card-mod-email/right/to.rb,
card/tmpsets/set/mod004-card-mod-email/right/bcc.rb,
card/tmpsets/set/mod028-card-mod-help/right/help.rb,
card/tmpsets/set/mod004-card-mod-email/right/from.rb,
card/tmpsets/set/mod028-card-mod-help/right/guide.rb,
card/tmpsets/set/mod037-card-mod-rules/right/self.rb,
card/tmpsets/set/mod020-card-mod-style/right/style.rb,
card/tmpsets/set/mod031-card-mod-layout/right/head.rb,
card/tmpsets/set/mod010-card-mod-account/right/salt.rb,
card/tmpsets/set/mod036-card-mod-search/right/mates.rb,
card/tmpsets/set/mod036-card-mod-search/right/nests.rb,
card/tmpsets/set/mod040-card-mod-monkey/right/debug.rb,
card/tmpsets/set/mod004-card-mod-email/right/subject.rb,
card/tmpsets/set/mod010-card-mod-account/right/email.rb,
card/tmpsets/set/mod010-card-mod-account/right/roles.rb,
card/tmpsets/set/mod016-card-mod-script/right/script.rb,
card/tmpsets/set/mod026-card-mod-follow/right/follow.rb,
card/tmpsets/set/mod036-card-mod-search/right/edited.rb,
card/tmpsets/set/mod036-card-mod-search/right/follow.rb,
card/tmpsets/set/mod010-card-mod-account/right/status.rb,
card/tmpsets/set/mod026-card-mod-follow/right/account.rb,
card/tmpsets/set/mod036-card-mod-search/right/created.rb,
card/tmpsets/set/mod036-card-mod-search/right/editors.rb,
card/tmpsets/set/mod006-card-mod-content/right/default.rb,
card/tmpsets/set/mod010-card-mod-account/right/account.rb,
card/tmpsets/set/mod011-card-mod-edit/right/input_type.rb,
card/tmpsets/set/mod019-card-mod-api_key/right/account.rb,
card/tmpsets/set/mod019-card-mod-api_key/right/api_key.rb,
card/tmpsets/set/mod023-card-mod-comment/right/comment.rb,
card/tmpsets/set/mod036-card-mod-search/right/children.rb,
card/tmpsets/set/mod036-card-mod-search/right/links_to.rb,
card/tmpsets/set/mod009-card-mod-permissions/right/read.rb,
card/tmpsets/set/mod010-card-mod-account/right/password.rb,
card/tmpsets/set/mod026-card-mod-follow/right/followers.rb,
card/tmpsets/set/mod026-card-mod-follow/right/following.rb,
card/tmpsets/set/mod036-card-mod-search/right/nested_by.rb,
card/tmpsets/set/mod036-card-mod-search/right/refers_to.rb,
card/tmpsets/set/mod006-card-mod-content/right/structure.rb,
card/tmpsets/set/mod024-card-mod-date/right/when_created.rb,
card/tmpsets/set/mod004-card-mod-email/right/html_message.rb,
card/tmpsets/set/mod004-card-mod-email/right/text_message.rb,
card/tmpsets/set/mod009-card-mod-permissions/right/create.rb,
card/tmpsets/set/mod009-card-mod-permissions/right/delete.rb,
card/tmpsets/set/mod009-card-mod-permissions/right/update.rb,
card/tmpsets/set/mod023-card-mod-comment/right/discussion.rb,
card/tmpsets/set/mod036-card-mod-search/right/linked_to_by.rb,
card/tmpsets/set/mod008-card-mod-list/right/content_options.rb,
card/tmpsets/set/mod026-card-mod-follow/right/follow_fields.rb,
card/tmpsets/set/mod031-card-mod-layout/right/enabled_roles.rb,
card/tmpsets/set/mod010-card-mod-account/right/account/views.rb,
card/tmpsets/set/mod024-card-mod-date/right/when_last_edited.rb,
card/tmpsets/set/mod036-card-mod-search/right/referred_to_by.rb,
card/tmpsets/set/mod037-card-mod-rules/right/type_plus_right.rb,
card/tmpsets/set/mod010-card-mod-account/right/account/events.rb,
card/tmpsets/set/mod015-card-mod-machines/right/machine_cache.rb,
card/tmpsets/set/mod015-card-mod-machines/right/machine_input.rb,
card/tmpsets/set/mod015-card-mod-machines/right/machine_output.rb,
card/tmpsets/set/mod008-card-mod-list/right/content_option_view.rb

Overview

Set Pattern: Right

Defined Under Namespace

Modules: Account, ApiKey, Autoname, Bcc, Cc, Children, Comment, ContentOptionView, ContentOptions, Create, Created, Debug, Default, Delete, Discussion, Edited, Editors, Email, EnabledRoles, Follow, FollowFields, Followers, Following, From, Guide, Head, Help, HtmlMessage, InputType, LinkedToBy, LinksTo, MachineCache, MachineInput, MachineOutput, Mates, NestedBy, Nests, Password, Read, ReferredToBy, RefersTo, Roles, Salt, Script, Self, Status, Structure, Style, Subject, TextMessage, To, TypePlusRight, Update, WhenCreated, WhenLastEdited

Constant Summary collapse

@@options =
{
  junction_only: true,
  assigns_type: 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

.anchor_name(card) ⇒ Object



29
30
31
# File 'card/tmpsets/set_pattern/106-right.rb', line 29

def anchor_name card
  card.name.tag
end

.generic_labelObject



21
22
23
# File 'card/tmpsets/set_pattern/106-right.rb', line 21

def generic_label
  "given field cards"
end

.label(name) ⇒ Object



13
14
15
# File 'card/tmpsets/set_pattern/106-right.rb', line 13

def label name
  %(All "+#{name}" cards)
end

.prototype_args(anchor) ⇒ Object



25
26
27
# File 'card/tmpsets/set_pattern/106-right.rb', line 25

def prototype_args anchor
  { name: "*dummy+#{anchor}" }
end

.short_label(name) ⇒ Object



17
18
19
# File 'card/tmpsets/set_pattern/106-right.rb', line 17

def short_label name
  %(all "+#{name}s")
end