Class: Reach::Version

Inherits:
Object
  • Object
show all
Defined in:
lib/reach/version.rb

Class Method Summary collapse

Class Method Details

.majorObject

The current major version number

Returns an int



7
8
9
# File 'lib/reach/version.rb', line 7

def self.major
  1
end

.minorObject

The current minor version number

Returns an int



14
15
16
# File 'lib/reach/version.rb', line 14

def self.minor
  0
end

.patchObject

The current patch version number

Returns an int



21
22
23
# File 'lib/reach/version.rb', line 21

def self.patch
  1
end

.preObject

The current pre version number

Returns an int



28
29
30
# File 'lib/reach/version.rb', line 28

def self.pre
  nil
end

.to_sObject

Bundles up the version number into a string

Returns the current version number as a string



35
36
37
# File 'lib/reach/version.rb', line 35

def self.to_s
  [major, minor, patch, pre].compact.join('.')
end