summaryrefslogtreecommitdiffstats
path: root/lib/config.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/config.rb')
-rw-r--r--lib/config.rb14
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