class Pagelime::Configuration
Attributes
cache[RW]
only allow getter access unless using configure block
cache_fetch_options[RW]
generate_region_cache_key[RW]
logger[RW]
only allow getter access unless using configure block
processor[RW]
only allow getter access unless using configure block
storage[RW]
only allow getter access unless using configure block
toggle_processing[RW]
only allow getter access unless using configure block
url_path[RW]
only allow getter access unless using configure block
Public Class Methods
new(defaults = {}, &block)
click to toggle source
pass in a configure block to write new values
# File lib/pagelime/configuration.rb, line 11 def initialize(defaults = {}, &block) @logger = Logger.new(STDOUT) @url_path = "/pagelime" # on, per_request, off @toggle_processing = "on" configure(&block) end
Public Instance Methods
configure() { |self| ... }
click to toggle source
# File lib/pagelime/configuration.rb, line 20 def configure(&block) yield(self) if block_given? self end