Module: Racket::Version
- Defined in:
- lib/racket/version.rb
Overview
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.
Constant Summary collapse
- MAJOR =
Major version
0
- MINOR =
Minor version
6
- TEENY =
Teeny version
0
- PRERELEASE =
Is it a prerelease?
false
Class Method Summary collapse
-
.current ⇒ String
Returns the current version of Racket as a string.
Class Method Details
.current ⇒ String
Returns the current version of Racket as a string.
35 36 37 38 |
# File 'lib/racket/version.rb', line 35 def current current = [MAJOR, MINOR, TEENY] ((current.push('pre') if PRERELEASE) || current).join('.') end |