diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/config.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/config.rb b/lib/config.rb new file mode 100644 index 0000000..bc42c34 --- /dev/null +++ b/lib/config.rb @@ -0,0 +1,14 @@ +require 'yaml' + +class Config + attr_reader :contact_email + + def self.load + conf = YAML.load(IO.read("config.yml")) + Config.new(conf) + end + + def initialize(conf) + @contact_email = conf['contact_email'] + end +end |