Class: Feed2Gram::LoadsConfig
- Inherits:
-
Object
- Object
- Feed2Gram::LoadsConfig
- Defined in:
- lib/feed2gram/loads_config.rb
Instance Method Summary collapse
Instance Method Details
#load(options) ⇒ Object
20 21 22 23 24 |
# File 'lib/feed2gram/loads_config.rb', line 20 def load() puts "Loading config from: #{.config_path}" if .verbose yaml = YAML.load_file(.config_path, permitted_classes: [Time]) Config.new(**yaml) end |