Module: Bootscale
- Defined in:
- lib/bootscale.rb,
lib/bootscale/cache.rb,
lib/bootscale/entry.rb,
lib/bootscale/utils.rb,
lib/bootscale/version.rb,
lib/bootscale/file_storage.rb,
lib/bootscale/cache_builder.rb,
lib/bootscale/active_support.rb
Defined Under Namespace
Modules: ActiveSupport, Utils Classes: Cache, CacheBuilder, Entry, FileStorage
Constant Summary collapse
- DOT_SO =
'.so'.freeze
- DOT_RB =
'.rb'.freeze
- LEADING_SLASH =
'/'.freeze
- VERSION =
'0.6.0'
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.
9 10 11 |
# File 'lib/bootscale.rb', line 9 def cache @cache end |
.cache_directory ⇒ Object (readonly)
Returns the value of attribute cache_directory.
9 10 11 |
# File 'lib/bootscale.rb', line 9 def cache_directory @cache_directory end |
Class Method Details
.cache_builder ⇒ Object
11 12 13 |
# File 'lib/bootscale.rb', line 11 def cache_builder @cache_builder ||= CacheBuilder.new end |
.regenerate ⇒ Object
15 16 17 |
# File 'lib/bootscale.rb', line 15 def regenerate cache.reload end |
.setup(options = {}) ⇒ Object
19 20 21 22 23 |
# File 'lib/bootscale.rb', line 19 def setup( = {}) @cache_directory = [:cache_directory] @cache = Cache.new(cache_directory) require_relative 'bootscale/core_ext' end |