Module: Card::Set::All::Follow
- Extended by:
- Card::Set
- Defined in:
- tmpsets/set/mod017-follow/all/follow.rb,
tmpsets/set/mod017-follow/all/follow/follow_link.rb,
tmpsets/set/mod017-follow/all/follow/followed_by.rb,
tmpsets/set/mod017-follow/all/follow/follower_ids.rb,
tmpsets/set/mod017-follow/all/follow/stop_follow_link.rb,
tmpsets/set/mod017-follow/all/follow/follow_link_views.rb,
tmpsets/set/mod017-follow/all/follow/start_follow_link.rb
Overview
! no set module
Defined Under Namespace
Modules: FollowLinkViews, FollowedBy, FollowerIds Classes: FollowLink, StartFollowLink, StopFollowLink
Constant Summary
Constants included from Helpers
Helpers::SET_PATTERN_TEST_REGEXP
Class Method Summary collapse
Instance Method Summary collapse
- #follow_label ⇒ Object
- #follow_option? ⇒ Boolean
- #follow_rule?(user = nil) ⇒ Boolean
- #follow_rule_card(user = nil, args = {}) ⇒ Object
- #follow_rule_name(user = nil) ⇒ Object
-
#follow_set_card ⇒ Object
the set card to be followed if you want to follow changes of card.
- #followable? ⇒ Boolean
- #list_direct_followers? ⇒ Boolean
Methods included from Card::Set
Methods included from I18nScope
Methods included from Loader
#clean_empty_module_from_hash, #clean_empty_modules, #extended, #process_base_modules, #register_set
Methods included from Helpers
#method_missing, #num_set_parts, #pattern_code, #respond_to_missing?, #set_name_parts, #shortname, #underscore
Methods included from Card::Set::AdvancedApi
#attachment, #ensure_set, #stage_method
Methods included from Format
#before, #format, layout_method_name, #view, view_method_name, view_setting_method_name, wrapper_method_name
Methods included from Inheritance
#include_set, #include_set_formats
Methods included from Basket
#abstract_basket, #add_to_basket, #basket, #unshift_basket
Methods included from Trait
#card_accessor, #card_reader, #card_writer, #require_field
Methods included from Event::Api
Class Method Details
.source_location ⇒ Object
8 |
# File 'tmpsets/set/mod017-follow/all/follow.rb', line 8 def self.source_location; "/Users/ethan/dev/decko/gem/card/mod/follow/set/all/follow.rb"; end |
Instance Method Details
#follow_label ⇒ Object
13 14 15 |
# File 'tmpsets/set/mod017-follow/all/follow.rb', line 13 def follow_label name end |
#follow_option? ⇒ Boolean
21 22 23 |
# File 'tmpsets/set/mod017-follow/all/follow.rb', line 21 def follow_option? codename && FollowOption.codenames.include?(codename) end |
#follow_rule?(user = nil) ⇒ Boolean
38 39 40 |
# File 'tmpsets/set/mod017-follow/all/follow.rb', line 38 def follow_rule? user=nil Card.exists? follow_rule_name(user) end |
#follow_rule_card(user = nil, args = {}) ⇒ Object
34 35 36 |
# File 'tmpsets/set/mod017-follow/all/follow.rb', line 34 def follow_rule_card user=nil, args={} Card.fetch follow_rule_name(user), args end |
#follow_rule_name(user = nil) ⇒ Object
30 31 32 |
# File 'tmpsets/set/mod017-follow/all/follow.rb', line 30 def follow_rule_name user=nil follow_set_card&.follow_rule_name user end |
#follow_set_card ⇒ Object
the set card to be followed if you want to follow changes of card
26 27 28 |
# File 'tmpsets/set/mod017-follow/all/follow.rb', line 26 def follow_set_card Card.fetch name, :self end |
#followable? ⇒ Boolean
9 10 11 |
# File 'tmpsets/set/mod017-follow/all/follow.rb', line 9 def followable? true end |
#list_direct_followers? ⇒ Boolean
17 18 19 |
# File 'tmpsets/set/mod017-follow/all/follow.rb', line 17 def list_direct_followers? false end |