Module: Bootscale::ActiveSupport
- Defined in:
- lib/bootscale/active_support.rb
Defined Under Namespace
Classes: Cache
Class Attribute Summary collapse
-
.cache ⇒ Object
readonly
Returns the value of attribute cache.
-
.cache_directory ⇒ Object
readonly
Returns the value of attribute cache_directory.
Class Method Summary collapse
Class Attribute Details
.cache ⇒ Object (readonly)
Returns the value of attribute cache.
26 27 28 |
# File 'lib/bootscale/active_support.rb', line 26 def cache @cache end |
.cache_directory ⇒ Object (readonly)
Returns the value of attribute cache_directory.
26 27 28 |
# File 'lib/bootscale/active_support.rb', line 26 def cache_directory @cache_directory end |
Class Method Details
.cache_builder ⇒ Object
28 29 30 |
# File 'lib/bootscale/active_support.rb', line 28 def cache_builder @cache_builder ||= CacheBuilder.new end |
.setup(options = {}) ⇒ Object
32 33 34 35 36 37 |
# File 'lib/bootscale/active_support.rb', line 32 def setup( = {}) @cache_directory = .fetch(:cache_directory, Bootscale.cache_directory) require 'active_support/dependencies' @cache = Cache.new(cache_directory) require_relative 'active_support/core_ext' end |