Class: ActiveRecord::Turntable::Configuration::Loader::YAML
- Inherits:
-
Object
- Object
- ActiveRecord::Turntable::Configuration::Loader::YAML
- Defined in:
- lib/active_record/turntable/configuration/loader/yaml.rb
Instance Attribute Summary collapse
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
-
#dsl ⇒ Object
readonly
Returns the value of attribute dsl.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(path, configuration = Configuration.new) ⇒ YAML
constructor
A new instance of YAML.
- #load(env) ⇒ Object
Constructor Details
#initialize(path, configuration = Configuration.new) ⇒ YAML
Returns a new instance of YAML.
6 7 8 9 10 |
# File 'lib/active_record/turntable/configuration/loader/yaml.rb', line 6 def initialize(path, configuration = Configuration.new) @path = path @configuration = configuration @dsl = DSL.new(@configuration) end |
Instance Attribute Details
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
4 5 6 |
# File 'lib/active_record/turntable/configuration/loader/yaml.rb', line 4 def configuration @configuration end |
#dsl ⇒ Object (readonly)
Returns the value of attribute dsl.
4 5 6 |
# File 'lib/active_record/turntable/configuration/loader/yaml.rb', line 4 def dsl @dsl end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
4 5 6 |
# File 'lib/active_record/turntable/configuration/loader/yaml.rb', line 4 def path @path end |
Class Method Details
.load(path, env, configuration = Configuration.new) ⇒ Object
12 13 14 |
# File 'lib/active_record/turntable/configuration/loader/yaml.rb', line 12 def self.load(path, env, configuration = Configuration.new) new(path, configuration).load(env) end |