Module: FollowSystem

Defined in:
lib/follow_system.rb,
lib/follow_system/follow.rb,
lib/follow_system/version.rb,
lib/follow_system/followee.rb,
lib/follow_system/follower.rb

Overview

FollowSystem module

This module defines common behavior in follow system

Defined Under Namespace

Modules: Followee, Follower Classes: Follow

Constant Summary collapse

VERSION =

Version constant definition

"0.2.0"

Instance Method Summary collapse

Instance Method Details

#act_as_followeeObject

Instructs self to act as followee



32
33
34
# File 'lib/follow_system.rb', line 32

def act_as_followee
  include Followee
end

#act_as_followerObject

Instructs self to act as follower



39
40
41
# File 'lib/follow_system.rb', line 39

def act_as_follower
  include Follower
end

#is_followee?Boolean

Specifies if self can be followed by Follower objects

Returns:

  • (Boolean)


16
17
18
# File 'lib/follow_system.rb', line 16

def is_followee?
  false
end

#is_follower?Boolean

Specifies if self can follow Followee objects

Returns:

  • (Boolean)


25
26
27
# File 'lib/follow_system.rb', line 25

def is_follower?
  false
end