Class: Localer::Config

Inherits:
Service show all
Defined in:
lib/localer/config.rb

Overview

Loads and parse Localer config file .localer.yml

Instance Method Summary collapse

Methods inherited from Service

call, new

Instance Method Details

#callObject



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