module Racket::Version

The only purpose of this module is to keep track of the current Racket version. It is not loaded automatically unless you make an explicit call to Racket.version.

Constants

MAJOR

Major version

MINOR

Minor version

PRERELEASE

Is it a prerelease?

TEENY

Teeny version

Public Class Methods

current() click to toggle source

Returns the current version of Racket as a string.

@return [String]

# File lib/racket/version.rb, line 35
def current
  current = [MAJOR, MINOR, TEENY]
  ((current.push('pre') if PRERELEASE) || current).join('.')
end

Private Instance Methods

current() click to toggle source

Returns the current version of Racket as a string.

@return [String]

# File lib/racket/version.rb, line 35
def current
  current = [MAJOR, MINOR, TEENY]
  ((current.push('pre') if PRERELEASE) || current).join('.')
end