From 9b9fd66c5534e34b7f85a50103ed307232762352 Mon Sep 17 00:00:00 2001 From: amikula Date: Mon, 16 May 2011 11:10:58 -0700 Subject: [PATCH] Move documentation for proxy_* to the class's attr_readers. --- lib/net/http.rb | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/lib/net/http.rb b/lib/net/http.rb index 553ebd9..db30725 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -883,9 +883,16 @@ module Net #:nodoc: @is_proxy_class end + # Address of proxy host. If self does not use a proxy, nil. attr_reader :proxy_address + + # Port number of proxy host. If self does not use a proxy, nil. attr_reader :proxy_port + + # User name for accessing proxy. If self does not use a proxy, nil. attr_reader :proxy_user + + # User password for accessing proxy. If self does not use a proxy, nil. attr_reader :proxy_pass end @@ -894,22 +901,22 @@ module Net #:nodoc: self.class.proxy_class? end - # Address of proxy host. If self does not use a proxy, nil. + # A convenience method for accessing value of proxy_address in self.class. def proxy_address self.class.proxy_address end - # Port number of proxy host. If self does not use a proxy, nil. + # A convenience method for accessing value of proxy_port in self.class. def proxy_port self.class.proxy_port end - # User name for accessing proxy. If self does not use a proxy, nil. + # A convenience method for accessing value of proxy_user in self.class. def proxy_user self.class.proxy_user end - # User password for accessing proxy. If self does not use a proxy, nil. + # A convenience method for accessing value of proxy_pass in self.class. def proxy_pass self.class.proxy_pass end -- 1.7.4.4