Class: Card::Set::Self

Inherits:
Pattern::Base show all
Defined in:
platypus/tmp/set_pattern/108-self.rb,
platypus/tmp/set/gem-card/mod001-core/self/mod.rb,
platypus/tmp/set/gem-card/mod001-core/self/admin.rb,
platypus/tmp/set/gem-card/mod001-core/self/trash.rb,
platypus/tmp/set/gem-card/mod001-core/self/version.rb,
platypus/tmp/set/gem-defaults/mod026-date/self/now.rb,
platypus/tmp/set/gem-card/mod001-core/self/autoname.rb,
platypus/tmp/set/gem-defaults/mod008-help/self/help.rb,
platypus/tmp/set/gem-defaults/mod008-help/self/guide.rb,
platypus/tmp/set/gem-defaults/mod004-format/self/home.rb,
platypus/tmp/set/gem-defaults/mod022-style/self/style.rb,
platypus/tmp/set/gem-defaults/mod031-layout/self/foot.rb,
platypus/tmp/set/gem-defaults/mod031-layout/self/head.rb,
platypus/tmp/set/gem-defaults/mod014-account/self/role.rb,
platypus/tmp/set/gem-defaults/mod028-follow/self/never.rb,
platypus/tmp/set/gem-defaults/mod009-search/self/recent.rb,
platypus/tmp/set/gem-defaults/mod009-search/self/search.rb,
platypus/tmp/set/gem-defaults/mod019-script/self/script.rb,
platypus/tmp/set/gem-defaults/mod028-follow/self/always.rb,
platypus/tmp/set/gem-defaults/mod028-follow/self/edited.rb,
platypus/tmp/set/gem-defaults/mod028-follow/self/follow.rb,
platypus/tmp/set/gem-defaults/mod031-layout/self/alerts.rb,
platypus/tmp/set/gem-defaults/mod031-layout/self/layout.rb,
platypus/tmp/set/gem-defaults/mod010-rules/self/cardtype.rb,
platypus/tmp/set/gem-defaults/mod014-account/self/signin.rb,
platypus/tmp/set/gem-defaults/mod020-ace_editor/self/ace.rb,
platypus/tmp/set/gem-defaults/mod028-follow/self/created.rb,
platypus/tmp/set/gem-defaults/mod031-layout/self/sidebar.rb,
platypus/tmp/set/gem-defaults/mod003-content/self/default.rb,
platypus/tmp/set/gem-defaults/mod011-edit/self/input_type.rb,
platypus/tmp/set/gem-defaults/mod032-recaptcha/self/admin.rb,
platypus/tmp/set/gem-defaults/mod007-permissions/self/read.rb,
platypus/tmp/set/gem-defaults/mod013-integrate/self/thanks.rb,
platypus/tmp/set/gem-defaults/mod014-account/self/wagn_bot.rb,
platypus/tmp/set/gem-defaults/mod022-style/self/style_mods.rb,
platypus/tmp/set/gem-defaults/mod003-content/self/structure.rb,
platypus/tmp/set/gem-defaults/mod014-account/self/anonymous.rb,
platypus/tmp/set/gem-defaults/mod016-carrierwave/self/admin.rb,
platypus/tmp/set/gem-defaults/mod032-recaptcha/self/captcha.rb,
platypus/tmp/set/gem-defaults/mod005-list/self/input_options.rb,
platypus/tmp/set/gem-defaults/mod007-permissions/self/create.rb,
platypus/tmp/set/gem-defaults/mod007-permissions/self/delete.rb,
platypus/tmp/set/gem-defaults/mod007-permissions/self/update.rb,
platypus/tmp/set/gem-defaults/mod016-carrierwave/self/search.rb,
platypus/tmp/set/gem-defaults/mod013-integrate/self/on_create.rb,
platypus/tmp/set/gem-defaults/mod013-integrate/self/on_delete.rb,
platypus/tmp/set/gem-defaults/mod013-integrate/self/on_update.rb,
platypus/tmp/set/gem-defaults/mod016-carrierwave/self/favicon.rb,
platypus/tmp/set/gem-defaults/mod005-list/self/content_options.rb,
platypus/tmp/set/gem-defaults/mod016-carrierwave/self/new_file.rb,
platypus/tmp/set/gem-defaults/mod028-follow/self/follow_fields.rb,
platypus/tmp/set/gem-defaults/mod031-layout/self/account_links.rb,
platypus/tmp/set/gem-defaults/mod010-rules/self/recent_settings.rb,
platypus/tmp/set/gem-defaults/mod016-carrierwave/self/new_image.rb,
platypus/tmp/set/gem-defaults/mod031-layout/self/layout_options.rb,
platypus/tmp/set/gem-defaults/mod028-follow/self/follow_defaults.rb,
platypus/tmp/set/gem-defaults/mod031-layout/self/dropdown_divider.rb,
platypus/tmp/set/gem-defaults/mod033-tinymce_editor/self/tiny_mce.rb,
platypus/tmp/set/gem-defaults/mod005-list/self/content_option_view.rb,
platypus/tmp/set/gem-defaults/mod024-bootstrap/self/bootstrap_core.rb,
platypus/tmp/set/gem-defaults/mod032-recaptcha/self/recaptcha_settings.rb,
platypus/tmp/set/gem-defaults/mod024-bootstrap/self/bootstrap_functions.rb

Overview

Set Pattern: Self

Defined Under Namespace

Modules: AccountLinks, Ace, Admin, Alerts, Always, Anonymous, Autoname, BootstrapCore, BootstrapFunctions, Captcha, Cardtype, ContentOptionView, ContentOptions, Create, Created, Default, Delete, DropdownDivider, Edited, Favicon, Follow, FollowDefaults, FollowFields, Foot, Guide, Head, Help, Home, InputOptions, InputType, Layout, LayoutOptions, Mod, Never, NewFile, NewImage, Now, OnCreate, OnDelete, OnUpdate, Read, RecaptchaSettings, Recent, RecentSettings, Role, Script, Search, Sidebar, Signin, Structure, Style, StyleMods, Thanks, TinyMce, Trash, Update, Version, WagnBot

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_id(card) ⇒ Object



27
28
29
# File 'platypus/tmp/set_pattern/108-self.rb', line 27

def anchor_id card
  card.id
end

.anchor_name(card) ⇒ Object



23
24
25
# File 'platypus/tmp/set_pattern/108-self.rb', line 23

def anchor_name card
  card.name
end

.generic_labelObject



15
16
17
# File 'platypus/tmp/set_pattern/108-self.rb', line 15

def generic_label
  "a single card"
end

.label(name) ⇒ Object



7
8
9
# File 'platypus/tmp/set_pattern/108-self.rb', line 7

def label name
  %(The card "#{name}")
end

.prototype_args(anchor) ⇒ Object



19
20
21
# File 'platypus/tmp/set_pattern/108-self.rb', line 19

def prototype_args anchor
  { name: anchor }
end

.short_label(name) ⇒ Object



11
12
13
# File 'platypus/tmp/set_pattern/108-self.rb', line 11

def short_label name
  name
end