Class: Perspectives::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/perspectives/configuration.rb

Constant Summary collapse

CacheNotConfigured =
Class.new(StandardError)

Instance Attribute Summary collapse

Instance Attribute Details

#cacheObject



10
11
12
# File 'lib/perspectives/configuration.rb', line 10

def cache
  @cache || (raise CacheNotConfigured, "You must configure a cache")
end

#cachingObject Also known as: caching?

Returns the value of attribute caching.



7
8
9
# File 'lib/perspectives/configuration.rb', line 7

def caching
  @caching
end