Results for: "to_proc"

Returns a proxy URI for the given scheme if one is set in the environment variables.

Returns a list of the protected instance methods defined in mod. If the optional parameter is false, the methods of any ancestors are not included.

Returns true if the named protected method is defined mod. If inherit is set, the lookup will also search mod’s ancestors. String arguments are converted to symbols.

module A
  def method1()  end
end
class B
  protected
  def method2()  end
end
class C < B
  include A
  def method3()  end
end

A.method_defined? :method1                    #=> true
C.protected_method_defined? "method1"         #=> false
C.protected_method_defined? "method2"         #=> true
C.protected_method_defined? "method2", true   #=> true
C.protected_method_defined? "method2", false  #=> false
C.method_defined? "method2"                   #=> true
No documentation available

Take a location from the prism parser and set the necessary instance variables.

Returns true if self is a class which was created by HTTP::Proxy.

Returns the address of the proxy server, if defined, nil otherwise; see Proxy Server.

Returns the port number of the proxy server, if defined, nil otherwise; see Proxy Server.

Returns the user name of the proxy server, if defined, nil otherwise; see Proxy Server.

Returns the password of the proxy server, if defined, nil otherwise; see Proxy Server.

Returns true if self is a class which was created by HTTP::Proxy.

Returns the address of the proxy server, if defined, nil otherwise; see Proxy Server.

Returns the port number of the proxy server, if defined, nil otherwise; see Proxy Server.

Returns the user name of the proxy server, if defined, nil otherwise; see Proxy Server.

Returns the password of the proxy server, if defined, nil otherwise; see Proxy Server.

Similar to inspect, but respects the current level of indentation given by the pretty print object.

Implement the pretty print interface for Location.

Implement the pretty print interface for Token.

No documentation available
No documentation available
No documentation available

A recommended version for use with a ~> Requirement.

Return a progress reporter object chosen from the current verbosity.

Args

oth

URI or String

Description

Calculates relative path from oth to self.

Usage

require 'uri'

uri = URI.parse('http://my.example.com/main.rbx?page=1')
uri.route_from('http://my.example.com')
#=> #<URI::Generic /main.rbx?page=1>

Returns a proxy URI. The proxy URI is obtained from environment variables such as http_proxy, ftp_proxy, no_proxy, etc. If there is no proper proxy, nil is returned.

If the optional parameter env is specified, it is used instead of ENV.

Note that capitalized variables (HTTP_PROXY, FTP_PROXY, NO_PROXY, etc.) are examined, too.

But http_proxy and HTTP_PROXY is treated specially under CGI environment. It’s because HTTP_PROXY may be set by Proxy: header. So HTTP_PROXY is not used. http_proxy is not used too if the variable is case insensitive. CGI_HTTP_PROXY can be used instead.

Search took: 6ms  ·  Total Results: 2407