Module: Bluepill::Version
- Defined in:
- lib/bluepill/version.rb
Class Method Summary collapse
- .major ⇒ Integer
- .minor ⇒ Integer
- .patch ⇒ Integer
- .pre ⇒ Integer, NilClass
- .to_a ⇒ Array
- .to_h ⇒ Hash
- .to_s ⇒ String
Class Method Details
.major ⇒ Integer
6 7 8 |
# File 'lib/bluepill/version.rb', line 6 def major 0 end |
.minor ⇒ Integer
11 12 13 |
# File 'lib/bluepill/version.rb', line 11 def minor 1 end |
.patch ⇒ Integer
16 17 18 |
# File 'lib/bluepill/version.rb', line 16 def patch 2 end |
.pre ⇒ Integer, NilClass
21 22 23 |
# File 'lib/bluepill/version.rb', line 21 def pre nil end |
.to_a ⇒ Array
36 37 38 |
# File 'lib/bluepill/version.rb', line 36 def to_a to_h.values.compact end |
.to_h ⇒ Hash
26 27 28 29 30 31 32 33 |
# File 'lib/bluepill/version.rb', line 26 def to_h { major: major, minor: minor, patch: patch, pre: pre, } end |
.to_s ⇒ String
41 42 43 |
# File 'lib/bluepill/version.rb', line 41 def to_s to_a.join('.') end |