blob: bc42c34b3578599e020cffd326e2db15432b3574 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
|