Module: Bookmarker::Extenders::Bookmarkable

Defined in:
lib/bookmarker/extenders/bookmarkable.rb

Instance Method Summary collapse

Instance Method Details

#bookmarkable?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/bookmarker/extenders/bookmarkable.rb', line 5

def bookmarkable?
  false
end

#is_bookmarkableObject



9
10
11
12
13
14
15
16
17
# File 'lib/bookmarker/extenders/bookmarkable.rb', line 9

def is_bookmarkable
  require 'bookmarker/bookmarkable'
  include Bookmarker::Bookmarkable
  class_eval do
    def self.bookmarkable?
      true
    end
  end
end