Class: Milkshake::Loader
- Inherits:
-
Object
- Object
- Milkshake::Loader
- Defined in:
- lib/milkshake/loader.rb
Instance Attribute Summary collapse
-
#cache ⇒ Object
Returns the value of attribute cache.
-
#environment ⇒ Object
Returns the value of attribute environment.
Instance Method Summary collapse
-
#initialize(environment, cache) ⇒ Loader
constructor
A new instance of Loader.
- #load_gem_initializers! ⇒ Object
Constructor Details
#initialize(environment, cache) ⇒ Loader
Returns a new instance of Loader.
7 8 9 10 |
# File 'lib/milkshake/loader.rb', line 7 def initialize(environment, cache) @environment = environment @cache = cache end |
Instance Attribute Details
#cache ⇒ Object
Returns the value of attribute cache.
5 6 7 |
# File 'lib/milkshake/loader.rb', line 5 def cache @cache end |
#environment ⇒ Object
Returns the value of attribute environment.
5 6 7 |
# File 'lib/milkshake/loader.rb', line 5 def environment @environment end |
Instance Method Details
#load_gem_initializers! ⇒ Object
12 13 14 15 16 |
# File 'lib/milkshake/loader.rb', line 12 def load_gem_initializers! initializers.each do |initializer| load(initializer) end end |