Class: Reach::Version
- Inherits:
-
Object
- Object
- Reach::Version
- Defined in:
- lib/reach/version.rb
Class Method Summary collapse
-
.major ⇒ Object
The current major version number.
-
.minor ⇒ Object
The current minor version number.
-
.patch ⇒ Object
The current patch version number.
-
.pre ⇒ Object
The current pre version number.
-
.to_s ⇒ Object
Bundles up the version number into a string.
Class Method Details
.major ⇒ Object
The current major version number
Returns an int
7 8 9 |
# File 'lib/reach/version.rb', line 7 def self.major 1 end |
.minor ⇒ Object
The current minor version number
Returns an int
14 15 16 |
# File 'lib/reach/version.rb', line 14 def self.minor 0 end |
.patch ⇒ Object
The current patch version number
Returns an int
21 22 23 |
# File 'lib/reach/version.rb', line 21 def self.patch 1 end |
.pre ⇒ Object
The current pre version number
Returns an int
28 29 30 |
# File 'lib/reach/version.rb', line 28 def self.pre nil end |
.to_s ⇒ Object
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 |