Module: Pharrell
- Defined in:
- lib/pharrell.rb,
lib/pharrell/config.rb,
lib/pharrell/errors.rb,
lib/pharrell/injectable.rb,
lib/pharrell/constructor.rb,
lib/pharrell/integration/rspec.rb
Defined Under Namespace
Modules: Constructor, Injectable, Integration
Classes: BindingNotFoundError, Config, ConfigNotDefinedError, Environment, InvalidOptionsError
Constant Summary
collapse
- @@environment =
nil
Class Method Summary
collapse
Class Method Details
.config(name, opts = {}, &blk) ⇒ Object
9
10
11
|
# File 'lib/pharrell.rb', line 9
def self.config(name, opts = {}, &blk)
environment.config(name, opts, &blk)
end
|
.instance_for(klass) ⇒ Object
17
18
19
|
# File 'lib/pharrell.rb', line 17
def self.instance_for(klass)
environment.instance_for(klass)
end
|
.rebuild! ⇒ Object
21
22
23
|
# File 'lib/pharrell.rb', line 21
def self.rebuild!
environment.rebuild!
end
|
.reset! ⇒ Object
25
26
27
|
# File 'lib/pharrell.rb', line 25
def self.reset!
@@enironment = Environment.new
end
|
.use_config(name) ⇒ Object
13
14
15
|
# File 'lib/pharrell.rb', line 13
def self.use_config(name)
environment.use_config(name)
end
|