class FakeConfiguration
  def initialize
    @options = {}
  end

  private

  def method_missing(name, *args, &blk)
    if name.to_s =~ /=$/
      @options[$`.to_sym] = args.first
    elsif @options.key?(name)
      @options[name]
    else
      super
    end
  end

  def respond_to_missing?(name, include_private = false)
    @options.key?(name) || super
  end
end