Class: Juvet::Configuration
- Inherits:
-
Object
- Object
- Juvet::Configuration
show all
- Defined in:
- lib/juvet/configuration.rb,
lib/juvet/configuration/adapter.rb,
lib/juvet/configuration/mapping.rb
Defined Under Namespace
Classes: Adapter, Mapping
Instance Method Summary
collapse
Instance Method Details
#adapter(options = nil) ⇒ Object
6
7
8
|
# File 'lib/juvet/configuration.rb', line 6
def adapter(options=nil)
@adapter ||= Juvet::Configuration::Adapter.new(options)
end
|
#load! ⇒ Object
14
15
16
|
# File 'lib/juvet/configuration.rb', line 14
def load!
adapter.build mapping.build
end
|
#mapping(&block) ⇒ Object
10
11
12
|
# File 'lib/juvet/configuration.rb', line 10
def mapping(&block)
@mapping ||= Juvet::Configuration::Mapping.new(&block)
end
|