Module: Teamsupport::Version
- Defined in:
- lib/teamsupport/version.rb
Class Method Summary collapse
-
.major ⇒ Integer
private
Returns major version.
-
.minor ⇒ Integer
private
Returns minor version.
-
.patch ⇒ Integer
private
Returns patch version.
-
.pre ⇒ Integer, NilClass
private
Returns pre version.
-
.to_a ⇒ Array
private
Returns version as array.
-
.to_h ⇒ Hash
private
Returns version as hash.
-
.to_s ⇒ String
private
Returns version as string.
Class Method Details
.major ⇒ Integer
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns major version
10 11 12 |
# File 'lib/teamsupport/version.rb', line 10 def major 0 end |
.minor ⇒ Integer
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns minor version
19 20 21 |
# File 'lib/teamsupport/version.rb', line 19 def minor 2 end |
.patch ⇒ Integer
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns patch version
28 29 30 |
# File 'lib/teamsupport/version.rb', line 28 def patch 0 end |
.pre ⇒ Integer, NilClass
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns pre version
37 38 39 |
# File 'lib/teamsupport/version.rb', line 37 def pre nil end |
.to_a ⇒ Array
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns version as array
60 61 62 |
# File 'lib/teamsupport/version.rb', line 60 def to_a [major, minor, patch, pre].compact end |
.to_h ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns version as hash
46 47 48 49 50 51 52 53 |
# File 'lib/teamsupport/version.rb', line 46 def to_h { major: major, minor: minor, patch: patch, pre: pre, } end |
.to_s ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns version as string
69 70 71 |
# File 'lib/teamsupport/version.rb', line 69 def to_s to_a.join('.') end |