Module: BareTest::VERSION

Defined in:
lib/baretest/version.rb

Overview

The version of the baretest library

Constant Summary collapse

MAJOR =

The major version number

0
MINOR =

The minor version number

4
TINY =

The tiny version number

1
PRERELEASE =

Prerelease number - nil for release versions

nil
STRING =

The version as a string

%{#{MAJOR}.#{MINOR||0}.#{TINY||0}#{".pre#{PRERELEASE}" if PRERELEASE}}
ARRAY =

The version as an array

[MAJOR || 0, MINOR || 0, TINY || 0, PRERELEASE].compact

Class Method Summary collapse

Class Method Details

.to_aObject

The version as an array



38
39
40
# File 'lib/baretest/version.rb', line 38

def self.to_a
  ARRAY
end

.to_sObject

The version as a string



33
34
35
# File 'lib/baretest/version.rb', line 33

def self.to_s
  STRING
end