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

Extended by:
Card::Set
Defined in:
platypus/tmp/set/gem-defaults/mod028-follow/all/follow.rb,
platypus/tmp/set/gem-defaults/mod028-follow/all/follow/follow_link.rb,
platypus/tmp/set/gem-defaults/mod028-follow/all/follow/followed_by.rb,
platypus/tmp/set/gem-defaults/mod028-follow/all/follow/follower_ids.rb,
platypus/tmp/set/gem-defaults/mod028-follow/all/follow/stop_follow_link.rb,
platypus/tmp/set/gem-defaults/mod028-follow/all/follow/follow_link_views.rb,
platypus/tmp/set/gem-defaults/mod028-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

Methods included from I18nScope

#mod_name, #scope

Methods included from Registrar

#extended, #finalize_load, #process_base_modules, #register_set

Methods included from Helpers

#format_module, #format_modules, #method_missing, #modules, #pattern_code, #respond_to_missing?, #set_name_parts, #shortname, #underscored_name

Methods included from Card::Set::AdvancedApi

#assign_type, #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 Trait

#card_accessor, #card_reader, #card_writer, #require_field

Methods included from Event::Api

#event

Class Method Details

.source_locationObject



8
# File 'platypus/tmp/set/gem-defaults/mod028-follow/all/follow.rb', line 8

def self.source_location; "/Users/ethan/dev/decko/gem/mod/follow/set/all/follow.rb"; end

Instance Method Details

#follow_labelObject



13
14
15
# File 'platypus/tmp/set/gem-defaults/mod028-follow/all/follow.rb', line 13

def follow_label
  name
end

#follow_option?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'platypus/tmp/set/gem-defaults/mod028-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 'platypus/tmp/set/gem-defaults/mod028-follow/all/follow.rb', line 38

def follow_rule? user=nil
  Card.exist? follow_rule_name(user)
end

#follow_rule_card(user = nil, args = {}) ⇒ Object



34
35
36
# File 'platypus/tmp/set/gem-defaults/mod028-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 'platypus/tmp/set/gem-defaults/mod028-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 'platypus/tmp/set/gem-defaults/mod028-follow/all/follow.rb', line 26

def follow_set_card
  Card.fetch name, :self
end

#followable?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'platypus/tmp/set/gem-defaults/mod028-follow/all/follow.rb', line 9

def followable?
  true
end

#list_direct_followers?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'platypus/tmp/set/gem-defaults/mod028-follow/all/follow.rb', line 17

def list_direct_followers?
  false
end