Class: Config

Inherits:
Object
  • Object
show all
Defined in:
lib/r4/config.rb

Class Method Summary collapse

Class Method Details

.settingsObject



5
6
7
8
9
10
11
# File 'lib/r4/config.rb', line 5

def self.settings
  if File.exists? "#{ENV['HOME']}/.r4.yml"
    YAML::load_file("#{ENV['HOME']}/.r4.yml")
  else
    'You need to create ~/.r4.yml file, check github for example.'
  end
end