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
-
#act_as_followee ⇒ Object
Instructs self to act as followee.
-
#act_as_follower ⇒ Object
Instructs self to act as follower.
-
#is_followee? ⇒ Boolean
Specifies if self can be followed by Follower objects.
-
#is_follower? ⇒ Boolean
Specifies if self can follow Followee objects.
Instance Method Details
#act_as_followee ⇒ Object
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_follower ⇒ Object
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
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
25 26 27 |
# File 'lib/follow_system.rb', line 25 def is_follower? false end |