method
no_proxy?
v2_1_10 -
Show latest stable
- Class:
Gem::Request
no_proxy?(host)public
No documentation available.
# File lib/rubygems/request.rb, line 235
def no_proxy? host
host = host.downcase
@env_no_proxy.each do |pattern|
pattern = pattern.downcase
return true if host[-pattern.length, pattern.length ] == pattern
end
return false
end