# File lib/mail_room/configuration.rb, line 10 def initialize(options={}) self.mailboxes = [] self.quiet = options.fetch(:quiet, false) if options.has_key?(:config_path) begin erb = ERB.new(File.read(options[:config_path])) erb.filename = options[:config_path] config_file = YAML.load(erb.result) set_mailboxes(config_file[:mailboxes]) rescue => e raise e unless quiet end end end