require 'yaml' module Feed2Mail class Config attr_reader :feeds attr_accessor :verbose, :hist_file def initialize @feeds = [] end def load(file = CONFIG_PATH) @rc = YAML.load_file(File.expand_path(file)) @rc['feeds'].each do |f| @feeds << Feed.new(f['uri']) end end end end