Class: Localer::Config
Overview
Loads and parse Localer config file .localer.yml
Instance Method Summary collapse
Methods inherited from Service
Instance Method Details
#call ⇒ Object
9 10 11 12 13 14 |
# File 'lib/localer/config.rb', line 9 def call return unless File.exist?(filename) yaml = YAML.load_file(filename) @exclude = yaml["Exclude"] if yaml&.key?("Exclude") self end |