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
tuples.
Copies this package to path
(if possible)
Gzips content written to gz_io
to io
.
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"
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"]}
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).
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.