Check if gem name
version version
is installed.
True if the requested gem has already been installed.
Installing a git gem only involves building the extensions and generating the executables.
This is a null install as this specification is already installed. options
are ignored.
This is a null install as a locked specification is considered installed. options
are ignored.
Installs this specification using the Gem::Installer
options
. The install method yields a Gem::Installer
instance, which indicates the gem will be installed, or nil
, which indicates the gem is already installed.
After installation spec
is updated to point to the just-installed specification.
This is a null install as this gem was unpacked into a directory. options
are ignored.
Starts tracing object allocations.
Calls the constructed Function
, with args
. Caller must ensure the underlying function is called in a thread-safe manner if running in a multi-threaded process.
For an example see Fiddle::Function
Allocates a C struct with the types
provided.
When the instance is garbage collected, the C function func
is called.
Allocates a C union the types
provided.
When the instance is garbage collected, the C function func
is called.
Fiddle::Pointer.malloc(size, freefunc = nil) => fiddle pointer instance
Allocate size
bytes of memory and associate it with an optional freefunc
that will be called when the pointer is garbage collected.
freefunc
must be an address pointing to a function or an instance of Fiddle::Function
Logs a message
at the fatal (syslog err) log level, or logs the message returned from the block.
Returns all specifications. This method is discouraged from use. You probably want to use one of the Enumerable
methods instead.
Sets the known specs to specs
. Not guaranteed to work for you in the future. Use at your own risk. Caveat emptor. Doomy doom doom. Etc
etc.
Shortcut for logging a FATAL
message
Will the logger output FATAL
messages?
Returns true
if the named file is writable by the real user and group id of this process. See access(3)
Returns true
if the named file is executable by the real user and group id of this process. See access(3).
Returns true if the given ordinal date is valid, and false if not.
Date.valid_ordinal?(2001,34) #=> true Date.valid_ordinal?(2001,366) #=> false
Returns true if the given week date is valid, and false if not.
Date.valid_commercial?(2001,5,6) #=> true Date.valid_commercial?(2001,5,8) #=> false
See also ::jd
and ::commercial
.