Module: Dude::Settings
- Defined in:
- lib/dude/settings.rb
Constant Summary collapse
- CONFIG_FILE =
'.duderc'
Instance Method Summary collapse
Instance Method Details
#settings ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/dude/settings.rb', line 7 def settings @settings ||= read(file).strip.split("\n").map do |line| next if line =~ /^#/ || line.empty? line.split('=').map(&:strip) end.compact.to_h end |