Results for: "to_proc"

Full path of the target library file. If the file is not in this gem, return nil.

Return a Gem::Specification from this gem

Turn an array of NameTuple objects back into an array of

name, version, platform

tuples.

Copies this package to path (if possible)

Gzips content written to gz_io to io.

No documentation available

Checks the to v component.

Private setter for to v.

Returns the RFC822 e-mail text equivalent of the URL, as a String.

Example:

require 'uri'

uri = URI.parse("mailto:ruby-list@ruby-lang.org?Subject=subscribe&cc=myaddr")
uri.to_mailtext
# => "To: ruby-list@ruby-lang.org\nSubject: subscribe\nCc: myaddr\n\n\n"
No documentation available

Converts the contents of the database to an in-memory Hash object, and returns it.

Returns a Hash consisting of header names and array of values. e.g. {“cache-control” => [“private”],

"content-type" => ["text/html"],
"date" => ["Wed, 22 Jun 2005 22:11:50 GMT"]}
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available

In case we’re building docs in a background process, this method waits for that process to exit (or if it’s already been reaped, or never happened, swallows the Errno::ECHILD error).

No documentation available
No documentation available

Convert internal ID of token symbol to the string.

Mounts a proc at a path that accepts a request and response.

Instead of mounting this servlet with WEBrick::HTTPServer#mount use WEBrick::HTTPServer#mount_proc:

server.mount_proc '/' do |req, res|
  res.body = 'it worked!'
  res.status = 200
end

Raises NoMemoryError when allocating an instance of the given classes.

No longer raises NoMemoryError when allocating an instance of the given classes.

Coerce an object to a string, providing our own representation if to_s is not defined for the object.

Search took: 4ms  ·  Total Results: 1969