Class: Card::Set::Right

Inherits:
Pattern::Base show all
Defined in:
platypus/tmp/set_pattern/106-right.rb,
platypus/tmp/set/gem-defaults/mod012-email/right/cc.rb,
platypus/tmp/set/gem-defaults/mod012-email/right/to.rb,
platypus/tmp/set/gem-card/mod001-core/right/autoname.rb,
platypus/tmp/set/gem-defaults/mod008-help/right/help.rb,
platypus/tmp/set/gem-defaults/mod012-email/right/bcc.rb,
platypus/tmp/set/gem-defaults/mod008-help/right/guide.rb,
platypus/tmp/set/gem-defaults/mod010-rules/right/self.rb,
platypus/tmp/set/gem-defaults/mod010-rules/right/type.rb,
platypus/tmp/set/gem-defaults/mod012-email/right/from.rb,
platypus/tmp/set/gem-defaults/mod004-format/right/head.rb,
platypus/tmp/set/gem-defaults/mod010-rules/right/right.rb,
platypus/tmp/set/gem-defaults/mod011-edit/right/thanks.rb,
platypus/tmp/set/gem-defaults/mod031-layout/right/head.rb,
platypus/tmp/set/gem-defaults/mod009-search/right/count.rb,
platypus/tmp/set/gem-defaults/mod009-search/right/mates.rb,
platypus/tmp/set/gem-defaults/mod009-search/right/nests.rb,
platypus/tmp/set/gem-defaults/mod014-account/right/salt.rb,
platypus/tmp/set/gem-defaults/mod009-search/right/edited.rb,
platypus/tmp/set/gem-defaults/mod012-email/right/subject.rb,
platypus/tmp/set/gem-defaults/mod014-account/right/email.rb,
platypus/tmp/set/gem-defaults/mod014-account/right/roles.rb,
platypus/tmp/set/gem-defaults/mod019-script/right/script.rb,
platypus/tmp/set/gem-defaults/mod028-follow/right/follow.rb,
platypus/tmp/set/gem-defaults/mod031-layout/right/layout.rb,
platypus/tmp/set/gem-defaults/mod009-search/right/by_name.rb,
platypus/tmp/set/gem-defaults/mod009-search/right/created.rb,
platypus/tmp/set/gem-defaults/mod009-search/right/creator.rb,
platypus/tmp/set/gem-defaults/mod009-search/right/editors.rb,
platypus/tmp/set/gem-defaults/mod014-account/right/status.rb,
platypus/tmp/set/gem-defaults/mod028-follow/right/account.rb,
platypus/tmp/set/gem-defaults/mod028-follow/right/message.rb,
platypus/tmp/set/gem-defaults/mod003-content/right/default.rb,
platypus/tmp/set/gem-defaults/mod009-search/right/children.rb,
platypus/tmp/set/gem-defaults/mod009-search/right/links_to.rb,
platypus/tmp/set/gem-defaults/mod011-edit/right/input_type.rb,
platypus/tmp/set/gem-defaults/mod014-account/right/account.rb,
platypus/tmp/set/gem-defaults/mod021-api_key/right/account.rb,
platypus/tmp/set/gem-defaults/mod021-api_key/right/api_key.rb,
platypus/tmp/set/gem-defaults/mod025-comment/right/comment.rb,
platypus/tmp/set/gem-defaults/mod007-permissions/right/read.rb,
platypus/tmp/set/gem-defaults/mod009-search/right/by_create.rb,
platypus/tmp/set/gem-defaults/mod009-search/right/by_update.rb,
platypus/tmp/set/gem-defaults/mod009-search/right/nested_by.rb,
platypus/tmp/set/gem-defaults/mod009-search/right/refers_to.rb,
platypus/tmp/set/gem-defaults/mod014-account/right/password.rb,
platypus/tmp/set/gem-defaults/mod028-follow/right/disappear.rb,
platypus/tmp/set/gem-defaults/mod028-follow/right/followers.rb,
platypus/tmp/set/gem-defaults/mod028-follow/right/following.rb,
platypus/tmp/set/gem-defaults/mod003-content/right/structure.rb,
platypus/tmp/set/gem-defaults/mod026-date/right/when_created.rb,
platypus/tmp/set/gem-defaults/mod032-recaptcha/right/captcha.rb,
platypus/tmp/set/gem-defaults/mod007-permissions/right/create.rb,
platypus/tmp/set/gem-defaults/mod007-permissions/right/delete.rb,
platypus/tmp/set/gem-defaults/mod007-permissions/right/update.rb,
platypus/tmp/set/gem-defaults/mod009-search/right/last_edited.rb,
platypus/tmp/set/gem-defaults/mod012-email/right/html_message.rb,
platypus/tmp/set/gem-defaults/mod012-email/right/text_message.rb,
platypus/tmp/set/gem-defaults/mod018-assets/right/asset_input.rb,
platypus/tmp/set/gem-defaults/mod025-comment/right/discussion.rb,
platypus/tmp/set/gem-defaults/mod032-recaptcha/right/site_key.rb,
platypus/tmp/set/gem-defaults/mod009-search/right/linked_to_by.rb,
platypus/tmp/set/gem-defaults/mod013-integrate/right/on_create.rb,
platypus/tmp/set/gem-defaults/mod013-integrate/right/on_delete.rb,
platypus/tmp/set/gem-defaults/mod013-integrate/right/on_update.rb,
platypus/tmp/set/gem-defaults/mod018-assets/right/asset_output.rb,
platypus/tmp/set/gem-defaults/mod005-list/right/content_options.rb,
platypus/tmp/set/gem-defaults/mod028-follow/right/follow_fields.rb,
platypus/tmp/set/gem-defaults/mod031-layout/right/enabled_roles.rb,
platypus/tmp/set/gem-defaults/mod032-recaptcha/right/secret_key.rb,
platypus/tmp/set/gem-defaults/mod009-search/right/referred_to_by.rb,
platypus/tmp/set/gem-defaults/mod010-rules/right/type_plus_right.rb,
platypus/tmp/set/gem-defaults/mod014-account/right/account/views.rb,
platypus/tmp/set/gem-defaults/mod026-date/right/when_last_edited.rb,
platypus/tmp/set/gem-defaults/mod014-account/right/account/events.rb,
platypus/tmp/set/gem-defaults/mod028-follow/right/contextual_class.rb,
platypus/tmp/set/gem-defaults/mod005-list/right/content_option_view.rb

Overview

Set Pattern: Right

Defined Under Namespace

Modules: Account, ApiKey, AssetInput, AssetOutput, Autoname, Bcc, ByCreate, ByName, ByUpdate, Captcha, Cc, Children, Comment, ContentOptionView, ContentOptions, ContextualClass, Count, Create, Created, Creator, Default, Delete, Disappear, Discussion, Edited, Editors, Email, EnabledRoles, Follow, FollowFields, Followers, Following, From, Guide, Head, Help, HtmlMessage, InputType, LastEdited, Layout, LinkedToBy, LinksTo, Mates, Message, NestedBy, Nests, OnCreate, OnDelete, OnUpdate, Password, Read, ReferredToBy, RefersTo, Right, Roles, Salt, Script, SecretKey, Self, SiteKey, Status, Structure, Subject, TextMessage, Thanks, To, Type, TypePlusRight, Update, WhenCreated, WhenLastEdited

Constant Summary collapse

@@options =
{
  compound_only: true,
  assigns_type: true
}

Instance Attribute Summary

Attributes included from Pattern::ClassMethods

#anchor_parts_count, #anchorless, #assigns_type, #compound_only, #pattern_code

Class Method Summary collapse

Methods inherited from Pattern::Base

#anchor_codenames, #anchor_parts, #find_anchor_id, #format_module_list, #initialize, #inspect, #lookup_module_list, #module_key, #module_list, #rule_lookup_key, #safe_key, #to_s

Methods included from Pattern::ClassMethods

#anchorless?, #compound_only?, #generic_label, #module_key, #new, #pattern, #pattern_applies?, #pattern_id, #register

Constructor Details

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

Class Method Details

.anchor_name(card) ⇒ Object



28
29
30
# File 'platypus/tmp/set_pattern/106-right.rb', line 28

def anchor_name card
  card.name.tag
end

.generic_labelObject



20
21
22
# File 'platypus/tmp/set_pattern/106-right.rb', line 20

def generic_label
  "given field cards"
end

.label(name) ⇒ Object



12
13
14
# File 'platypus/tmp/set_pattern/106-right.rb', line 12

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

.prototype_args(anchor) ⇒ Object



24
25
26
# File 'platypus/tmp/set_pattern/106-right.rb', line 24

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

.short_label(name) ⇒ Object



16
17
18
# File 'platypus/tmp/set_pattern/106-right.rb', line 16

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