Module: Card::Set::All::Follow

Extended by:
Card::Set
Defined in:
card/tmpsets/set/mod025-card-mod-follow/all/follow.rb,
card/tmpsets/set/mod025-card-mod-follow/all/follow/follow_link.rb,
card/tmpsets/set/mod025-card-mod-follow/all/follow/followed_by.rb,
card/tmpsets/set/mod025-card-mod-follow/all/follow/follower_ids.rb,
card/tmpsets/set/mod025-card-mod-follow/all/follow/stop_follow_link.rb,
card/tmpsets/set/mod025-card-mod-follow/all/follow/follow_link_views.rb,
card/tmpsets/set/mod025-card-mod-follow/all/follow/start_follow_link.rb,
card/tmpsets/set/mod026-card-mod-follow/all/follow.rb,
card/tmpsets/set/mod026-card-mod-follow/all/follow/follow_link.rb,
card/tmpsets/set/mod026-card-mod-follow/all/follow/followed_by.rb,
card/tmpsets/set/mod026-card-mod-follow/all/follow/follower_ids.rb,
card/tmpsets/set/mod026-card-mod-follow/all/follow/stop_follow_link.rb,
card/tmpsets/set/mod026-card-mod-follow/all/follow/follow_link_views.rb,
card/tmpsets/set/mod026-card-mod-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

Constants included from Event::Api

Event::Api::OPTIONS

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Card::Set

reset_modules

Methods included from I18nScope

#mod_name, #scope

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, #define_set_from_error, #ensure_set, #setting_opts, #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

#event

Class Method Details

.source_locationObject



8
# File 'card/tmpsets/set/mod025-card-mod-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_labelObject



13
14
15
# File 'card/tmpsets/set/mod025-card-mod-follow/all/follow.rb', line 13

def follow_label
  name
end

#follow_option?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'card/tmpsets/set/mod025-card-mod-follow/all/follow.rb', line 21

def follow_option?
  codename && FollowOption.codenames.include?(codename)
end

#follow_rule?(user = nil) ⇒ Boolean

Returns:

  • (Boolean)


38
39
40
# File 'card/tmpsets/set/mod025-card-mod-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 'card/tmpsets/set/mod025-card-mod-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 'card/tmpsets/set/mod025-card-mod-follow/all/follow.rb', line 30

def follow_rule_name user=nil
  follow_set_card&.follow_rule_name user
end

#follow_set_cardObject

the set card to be followed if you want to follow changes of card



26
27
28
# File 'card/tmpsets/set/mod025-card-mod-follow/all/follow.rb', line 26

def follow_set_card
  Card.fetch name, :self
end

#followable?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'card/tmpsets/set/mod025-card-mod-follow/all/follow.rb', line 9

def followable?
  true
end

#list_direct_followers?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'card/tmpsets/set/mod025-card-mod-follow/all/follow.rb', line 17

def list_direct_followers?
  false
end