Module: BookmarkSystem
- Defined in:
- lib/bookmark_system.rb,
lib/bookmark_system/version.rb,
lib/bookmark_system/bookmark.rb,
lib/bookmark_system/bookmarkee.rb,
lib/bookmark_system/bookmarker.rb
Overview
BookmarkSystem module
This module defines common behavior in bookmark system
Defined Under Namespace
Modules: Bookmarkee, Bookmarker Classes: Bookmark
Constant Summary collapse
- VERSION =
Version constant definition
"0.2.0"
Instance Method Summary collapse
-
#act_as_bookmarkee ⇒ Object
Instructs self to act as bookmarkee.
-
#act_as_bookmarker ⇒ Object
Instructs self to act as bookmarker.
-
#is_bookmarkee? ⇒ Boolean
Specifies if self can be bookmarked by Bookmarker objects.
-
#is_bookmarker? ⇒ Boolean
Specifies if self can bookmark Bookmarkee objects.
Instance Method Details
#act_as_bookmarkee ⇒ Object
Instructs self to act as bookmarkee
32 33 34 |
# File 'lib/bookmark_system.rb', line 32 def act_as_bookmarkee include Bookmarkee end |
#act_as_bookmarker ⇒ Object
Instructs self to act as bookmarker
39 40 41 |
# File 'lib/bookmark_system.rb', line 39 def act_as_bookmarker include Bookmarker end |
#is_bookmarkee? ⇒ Boolean
Specifies if self can be bookmarked by Bookmarker objects
16 17 18 |
# File 'lib/bookmark_system.rb', line 16 def is_bookmarkee? false end |
#is_bookmarker? ⇒ Boolean
Specifies if self can bookmark Bookmarkee objects
25 26 27 |
# File 'lib/bookmark_system.rb', line 25 def is_bookmarker? false end |