Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
module · Ruby 4.1
RbConfig
Constants
A Hash with the bounds of numeric types available to the C compiler used to build Ruby. To access this constant, first run require 'rbconfig/sizeof'.
Example
require 'rbconfig/sizeof' RUBY_PLATFORM # => "x64-mingw-ucrt" RbConfig::LIMITS.fetch_values('FIXNUM_MAX', 'LONG_MAX') # => [1073741823, 2147483647]