Class: Softcover::Config

Inherits:
BaseConfig show all
Defined in:
lib/softcover/config.rb

Constant Summary

Constants inherited from BaseConfig

BaseConfig::DEFAULTS, BaseConfig::PATH

Class Method Summary collapse

Methods inherited from BaseConfig

[], []=, exists?, read, remove

Class Method Details

.pathObject



58
59
60
# File 'lib/softcover/config.rb', line 58

def self.path
  File.exists?(".softcover") ? ".softcover" : "~/.softcover"
end