Module: Yourub::Config
- Extended by:
- Forwardable
- Defined in:
- lib/yourub/config.rb
Class Attribute Summary collapse
-
.config ⇒ Object
Returns the value of attribute config.
Class Method Summary collapse
Class Attribute Details
.config ⇒ Object
Returns the value of attribute config.
10 11 12 |
# File 'lib/yourub/config.rb', line 10 def config @config end |
Class Method Details
.load!(file_path, environment) ⇒ Object
15 16 17 |
# File 'lib/yourub/config.rb', line 15 def load!(file_path, environment) @config = OpenStruct.new YAML.load_file(file_path)[environment] end |