0001-Move-documentation-for-proxy_-to-the-class-s-attr_re.patch

Alf Mikula, 05/17/2011 03:40 AM

Download (1.85 KB)

View differences:

lib/net/http.rb
883 883
        @is_proxy_class
884 884
      end
885 885

  
886
      # Address of proxy host. If self does not use a proxy, nil.
886 887
      attr_reader :proxy_address
888

  
889
      # Port number of proxy host. If self does not use a proxy, nil.
887 890
      attr_reader :proxy_port
891

  
892
      # User name for accessing proxy. If self does not use a proxy, nil.
888 893
      attr_reader :proxy_user
894

  
895
      # User password for accessing proxy. If self does not use a proxy, nil.
889 896
      attr_reader :proxy_pass
890 897
    end
891 898

  
......
894 901
      self.class.proxy_class?
895 902
    end
896 903

  
897
    # Address of proxy host. If self does not use a proxy, nil.
904
    # A convenience method for accessing value of proxy_address in self.class.
898 905
    def proxy_address
899 906
      self.class.proxy_address
900 907
    end
901 908

  
902
    # Port number of proxy host. If self does not use a proxy, nil.
909
    # A convenience method for accessing value of proxy_port in self.class.
903 910
    def proxy_port
904 911
      self.class.proxy_port
905 912
    end
906 913

  
907
    # User name for accessing proxy. If self does not use a proxy, nil.
914
    # A convenience method for accessing value of proxy_user in self.class.
908 915
    def proxy_user
909 916
      self.class.proxy_user
910 917
    end
911 918

  
912
    # User password for accessing proxy. If self does not use a proxy, nil.
919
    # A convenience method for accessing value of proxy_pass in self.class.
913 920
    def proxy_pass
914 921
      self.class.proxy_pass
915 922
    end
916
-