Skip to content
On this page

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

module · Ruby 4.1 · added in Ruby 4.0

Ruby

for RDoc; Ruby::Prism is defined by lib/ruby/prism.rb via autoload

The Ruby module that contains portable information among implementations.

The constants defined here are aliased in the toplevel with RUBY_ prefix.

Constants

The copyright string for ruby

The full ruby version string, like ruby -v prints

The engine or interpreter this ruby uses.

The version of the engine or interpreter this ruby uses.

The patchlevel for this ruby. If this is a development build of ruby the patchlevel will be -1

The platform for this ruby

The date this ruby was released

The GIT commit hash for this ruby.

The running version of ruby

Ruby version changes 1

  1. 4.0
    • A new toplevel module Ruby has been defined, which contains Ruby-related constants. This module was reserved in Ruby 3.4 and is now officially defined. [Feature #20884]