Class: Jung::Config
- Inherits:
-
Object
- Object
- Jung::Config
- Defined in:
- lib/jung/config.rb
Instance Attribute Summary collapse
-
#driver ⇒ Object
readonly
Returns the value of attribute driver.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
- #driver_const ⇒ Object
-
#initialize(options) ⇒ Config
constructor
A new instance of Config.
Constructor Details
Instance Attribute Details
#driver ⇒ Object (readonly)
Returns the value of attribute driver.
4 5 6 |
# File 'lib/jung/config.rb', line 4 def driver @driver end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/jung/config.rb', line 4 def @options end |
Class Method Details
.load(file = "config/jung.yml", namespace = nil) ⇒ Object
6 7 8 9 |
# File 'lib/jung/config.rb', line 6 def self.load(file = "config/jung.yml", namespace = nil) = YAML.load_file file return self.new [namespace.to_s] end |