Results for: "remove_const"

No documentation available
No documentation available

Returns path to the extensions directory.

Indicated, based on the requested domain, if local gems should be considered.

No documentation available

Builds extensions. Valid types of extensions are extconf.rb files, configure scripts and rakefiles or mkrf_conf files.

Creates or an HTTP connection based on uri, or retrieves an existing connection, using a proxy if needed.

The path where this gem installs its extensions.

Is this specification missing its extensions? When this returns true you probably want to build_extensions

No documentation available

Private setter for extensions val.

Returns the destination encoding as an encoding object.

Returns the destination encoding as an encoding object.

Returns the destination encoding as an Encoding object.

Consumes size bytes from the buffer

Returns whether the HTTP session is to be closed.

Returns a list of encodings in Content-Encoding field as an array of strings.

The encodings are downcased for canonicalization.

Add the install/update options to the option parser.

Starts tracing object allocations.

Stop tracing object allocations.

Note that if ::trace_object_allocations_start is called n-times, then tracing will stop after calling ::trace_object_allocations_stop n-times.

Returns a URL-encoded string derived from the given string str.

The returned string:

Encoding:

In either case, the returned string has forced encoding Encoding::US_ASCII.

Related: URI.encode_uri_component (encodes ' ' as '%20').

Returns a string decoded from the given URL-encoded string str.

The given string is first encoded as Encoding::ASCII-8BIT (using String#b), then decoded (as below), and finally force-encoded to the given encoding enc.

The returned string:

Related: URI.decode_uri_component (preserves '+').

Return the value that should be dumped for the command_line option.

Returns an Addrinfo object for remote address obtained by getpeername.

Note that addrinfo.protocol is filled by 0.

TCPSocket.open("www.ruby-lang.org", 80) {|s|
  p s.remote_address #=> #<Addrinfo: 221.186.184.68:80 TCP>
}

TCPServer.open("127.0.0.1", 1728) {|serv|
  c = TCPSocket.new("127.0.0.1", 1728)
  s = serv.accept
  p s.remote_address #=> #<Addrinfo: 127.0.0.1:36504 TCP>
}
No documentation available
Search took: 3ms  ·  Total Results: 3274