Method: BatchKit::Config#load
- Defined in:
- lib/batch-kit/config.rb
#load(path, options = {}) ⇒ Object
Read a properties or YAML file at the path specified in path, and load the contents to this Config object.
146 147 148 149 150 151 |
# File 'lib/batch-kit/config.rb', line 146 def load(path, = {}) props = case File.extname(path) when /\.yaml/i then self.load_yaml(path, ) else self.load_properties(path, ) end end |