module CookieLaw

Constants

ACCEPT_ON_SCROLL
DEFAULT_EXPIRATION
DEFAULT_SCROLL_HEIGHT
VERSION

Public Class Methods

accept_on_scroll() click to toggle source
# File lib/cookie_law.rb, line 41
def self.accept_on_scroll
  configuration.accept_on_scroll || ACCEPT_ON_SCROLL
end
configuration() click to toggle source
# File lib/cookie_law.rb, line 14
def self.configuration
  @configuration ||= Configuration.new
end
configure() { |configuration| ... } click to toggle source
# File lib/cookie_law.rb, line 18
def self.configure
  yield(configuration)
end
scroll_height() click to toggle source
# File lib/cookie_law.rb, line 33
def self.scroll_height
  configuration.scroll_height || DEFAULT_SCROLL_HEIGHT
end