# File lib/selenium/webdriver/remote/capabilities.rb, line 134 def proxy=(proxy) case proxy when Hash @proxy = Proxy.new(proxy) when Proxy, nil @proxy = proxy else raise TypeError, "expected Hash or #{Proxy.name}, got #{proxy.inspect}:#{proxy.class}" end end