Class: Perspectives::Configuration
- Inherits:
-
Object
- Object
- Perspectives::Configuration
- Defined in:
- lib/perspectives/configuration.rb
Constant Summary collapse
- CacheNotConfigured =
Class.new(StandardError)
Instance Attribute Summary collapse
- #cache ⇒ Object
-
#caching ⇒ Object
(also: #caching?)
Returns the value of attribute caching.
Instance Attribute Details
#cache ⇒ Object
10 11 12 |
# File 'lib/perspectives/configuration.rb', line 10 def cache @cache || (raise CacheNotConfigured, "You must configure a cache") end |
#caching ⇒ Object Also known as: caching?
Returns the value of attribute caching.
7 8 9 |
# File 'lib/perspectives/configuration.rb', line 7 def caching @caching end |