Module magnus::value

source ·
Expand description

Types for working with Ruby’s VALUE type, representing all objects, and ‘immediate’ values such as Fixnum.

Structs§

  • Protects a Ruby Value from the garbage collector.
  • A Value known to be a fixnum, Ruby’s internal representation of small integers.
  • A Value known to be a flonum, Ruby’s internal representation of lower precision floating point numbers.
  • The internal value of a Ruby symbol.
  • Lazily initialise a Ruby value so it can be assigned to a static.
  • An Id that can be assigned to a static and Derefs to OpaqueId.
  • A wrapper to make a Ruby type Send + Sync.
  • A wrapper to make a Ruby Id Send + Sync.
  • Ruby’s false value.
  • Ruby’s nil value.
  • Ruby’s true value.
  • A placeholder value that represents an undefined value. Not exposed to Ruby level code.
  • A static Ruby symbol that will live for the life of the program and never be garbage collected.
  • Ruby’s VALUE type, which can represent any Ruby object.

Constants§

  • QFALSEDeprecated
    Ruby’s false value.
  • QNILDeprecated
    Ruby’s nil value.
  • QTRUEDeprecated
    Ruby’s true value.
  • A placeholder value that represents an undefined value. Not exposed to Ruby level code.

Traits§

Functions§

  • Returns Ruby’s false value.
  • Returns Ruby’s nil value.
  • Returns Ruby’s true value.