Returns the destination encoding name as a string.
Returns the destination encoding name as a string.
offline mode. read name=value pairs on standard input.
Set header fields and a body from HTML form data. params should be an Array of Arrays or a Hash containing HTML form data. Optional argument sep means data record separator.
Values are URL encoded as necessary and the content-type is set to application/x-www-form-urlencoded
Example:
http.form_data = {"q" => "ruby", "lang" => "en"} http.form_data = {"q" => ["ruby", "perl"], "lang" => "en"} http.set_form_data({"q" => "ruby", "lang" => "en"}, ';')
A convenience method, like object_group, but also reformats the Object’s object_id.
Creates a self-signed certificate with an issuer and subject from email, a subject alternative name of email and the given extensions for the key.
Turns email_address into an OpenSSL::X509::Name
Deprecation method to deprecate Rubygems commands
Deprecation method to deprecate Rubygems commands
Asks the user to answer question with an answer from the given list.
Add the –platform option to the option parser.
@return [Array<Vertex>] the vertices of {#graph} that have an edge with
`self` as their {Edge#origin}
Resolves the {#original_requested} dependencies into a full dependency
graph
@raise [ResolverError] if successful resolution is impossible @return [DependencyGraph] the dependency graph of successfully resolved
dependencies
@return [RequirementState] the current state the resolution is
operating upon
Gets the global do_not_reverse_lookup flag.
BasicSocket.do_not_reverse_lookup #=> false
Sets the global do_not_reverse_lookup flag.
The flag is used for initial value of do_not_reverse_lookup for each socket.
s1 = TCPSocket.new("localhost", 80) p s1.do_not_reverse_lookup #=> true BasicSocket.do_not_reverse_lookup = false s2 = TCPSocket.new("localhost", 80) p s2.do_not_reverse_lookup #=> false p s1.do_not_reverse_lookup #=> true
Gets the do_not_reverse_lookup flag of basicsocket.
require 'socket' BasicSocket.do_not_reverse_lookup = false TCPSocket.open("www.ruby-lang.org", 80) {|sock| p sock.do_not_reverse_lookup #=> false } BasicSocket.do_not_reverse_lookup = true TCPSocket.open("www.ruby-lang.org", 80) {|sock| p sock.do_not_reverse_lookup #=> true }