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
.
Returns a Ruby code representation of this specification, such that it can be eval’ed and reconstruct the same specification later. Attributes that still have their default values are omitted.
Returns self
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"]}
Serializes the private key to DER-encoded PKCS #8 format. If called without arguments, unencrypted PKCS #8 PrivateKeyInfo format is used. If called with a cipher name and a password, PKCS #8 EncryptedPrivateKeyInfo format with PBES2 encryption scheme is used.
Serializes the private key to PEM-encoded PKCS #8 format. See private_to_der
for more details.
Convert internal ID of token symbol to the string.
Raises NoMemoryError
when allocating an instance of the given classes.
No longer raises NoMemoryError
when allocating an instance of the given classes.
Add a list of paths to the $LOAD_PATH at the proper place.
Coerce an object to a string, providing our own representation if to_s is not defined for the object.