Get a single gem name from the command line. Fail if there is no gem name or if there is more than one gem name given.
Creates the following instance variables:
a spec named ‘a’, intended for regular installs
a spec named ‘b’, intended for user installs
the path to a built gem from @spec
the path to a built gem from @user_spec
And returns a Gem::Installer
for the @user_spec that installs into Gem.user_dir
The X509
certificate chain for this socket’s peer.
Like Enumerable#select
, but chains operation to be lazy-evaluated.
Returns the hash value of a given string. This is equivalent to Digest::Class.new(*parameters)
.digest(string), where extra parameters, if any, are passed through to the constructor and the string is passed to digest()
.
Returns the hex-encoded hash value of a given string. This is almost equivalent to Digest.hexencode
(Digest::Class.new(*parameters)
.digest(string)).
Returns the base64 encoded hash value of a given string. The return value is properly padded with ‘=’ and contains no line feeds.
Close this handle.
Calling close more than once will raise a Fiddle::DLError
exception.
Array
of the currently loaded libraries.
Allocates a C struct with the types
provided.
When the instance is garbage collected, the C function func
is called.