Module: Hackpad::Config
Instance Method Summary collapse
Instance Method Details
#load(dir = nil) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/hackpad/config.rb', line 5 def load(dir = nil) if !Dir.exists?(conf_dir dir) || !File.exists?(conf_file) setup conf_dir dir end YAML::load_file conf_file end |