require "ostruct" require "yaml" module Blog class Config < OpenStruct def self.load! Config.new(YAML.load_file("config.yaml")) end end end