Class: Card::Set::Right

Inherits:
Pattern::Abstract
  • Object
show all
Defined in:
tmpsets/set_pattern/106-right.rb,
tmpsets/set/mod016-email/right/cc.rb,
tmpsets/set/mod016-email/right/to.rb,
tmpsets/set/mod016-email/right/bcc.rb,
tmpsets/set/mod016-email/right/from.rb,
tmpsets/set/mod025-account/right/salt.rb,
tmpsets/set/mod015-settings/right/help.rb,
tmpsets/set/mod015-settings/right/read.rb,
tmpsets/set/mod016-email/right/subject.rb,
tmpsets/set/mod017-follow/right/follow.rb,
tmpsets/set/mod021-standard/right/head.rb,
tmpsets/set/mod025-account/right/email.rb,
tmpsets/set/mod025-account/right/token.rb,
tmpsets/set/mod015-settings/right/style.rb,
tmpsets/set/mod017-follow/right/account.rb,
tmpsets/set/mod025-account/right/status.rb,
tmpsets/set/mod008-pointer/right/options.rb,
tmpsets/set/mod015-settings/right/create.rb,
tmpsets/set/mod015-settings/right/delete.rb,
tmpsets/set/mod015-settings/right/script.rb,
tmpsets/set/mod015-settings/right/update.rb,
tmpsets/set/mod018-developer/right/debug.rb,
tmpsets/set/mod025-account/right/account.rb,
tmpsets/set/mod015-settings/right/comment.rb,
tmpsets/set/mod015-settings/right/default.rb,
tmpsets/set/mod017-follow/right/followers.rb,
tmpsets/set/mod017-follow/right/following.rb,
tmpsets/set/mod025-account/right/password.rb,
tmpsets/set/mod015-settings/right/add_help.rb,
tmpsets/set/mod015-settings/right/autoname.rb,
tmpsets/set/mod015-settings/right/structure.rb,
tmpsets/set/mod016-email/right/html_message.rb,
tmpsets/set/mod016-email/right/text_message.rb,
tmpsets/set/mod021-standard/right/discussion.rb,
tmpsets/set/mod017-follow/right/follow_fields.rb,
tmpsets/set/mod021-standard/right/when_created.rb,
tmpsets/set/mod014-machines/right/machine_cache.rb,
tmpsets/set/mod014-machines/right/machine_input.rb,
tmpsets/set/mod012-solid_cache/right/solid_cache.rb,
tmpsets/set/mod014-machines/right/machine_output.rb,
tmpsets/set/mod021-standard/right/when_last_edited.rb

Overview

Set Pattern: Right

Defined Under Namespace

Modules: Account, AddHelp, Autoname, Bcc, Cc, Comment, Create, Debug, Default, Delete, Discussion, Email, Follow, FollowFields, Followers, Following, From, Head, Help, HtmlMessage, MachineCache, MachineInput, MachineOutput, Options, Password, Read, Salt, Script, SolidCache, Status, Structure, Style, Subject, TextMessage, To, Token, Update, WhenCreated, WhenLastEdited

Constant Summary collapse

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

Class Method Summary collapse

Class Method Details

.anchor_name(card) ⇒ Object



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

def anchor_name card
  card.name.tag
end

.label(name) ⇒ Object



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

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

.prototype_args(anchor) ⇒ Object



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

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

.short_label(name) ⇒ Object



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

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