Sha256: 4ee1df19ed9659c3fb7695a32a699df4a502dd85ca95d915bd8c85d90b101c0e
Contents?: true
Size: 753 Bytes
Versions: 6
Compression:
Stored size: 753 Bytes
Contents
require 'bookmark_system/bookmark' require 'bookmark_system/bookmarkee' require 'bookmark_system/bookmarker' ### # BookmarkSystem module # # This module defines common behavior in bookmark system ### module BookmarkSystem ### # Specifies if self can be bookmarked by {Bookmarker} objects # # @return [Boolean] ### def is_bookmarkee? false end ### # Specifies if self can bookmark {Bookmarkee} objects # # @return [Boolean] ### def is_bookmarker? false end ### # Instructs self to act as bookmarkee ### def act_as_bookmarkee include Bookmarkee end ### # Instructs self to act as bookmarker ### def act_as_bookmarker include Bookmarker end end ActiveRecord::Base.extend BookmarkSystem
Version data entries
6 entries across 6 versions & 1 rubygems