Module: MyVR::Version
- Defined in:
- lib/myvr/version.rb
Class Method Summary collapse
Class Method Details
.major ⇒ Object
4 5 6 |
# File 'lib/myvr/version.rb', line 4 def major 0 end |
.minor ⇒ Object
8 9 10 |
# File 'lib/myvr/version.rb', line 8 def minor 0 end |
.patch ⇒ Object
12 13 14 |
# File 'lib/myvr/version.rb', line 12 def patch 1 end |
.to_a ⇒ Object
24 25 26 |
# File 'lib/myvr/version.rb', line 24 def to_a [major, minor, patch].compact end |
.to_h ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/myvr/version.rb', line 16 def to_h { major: major, minor: minor, patch: patch, } end |
.to_s ⇒ Object
28 29 30 |
# File 'lib/myvr/version.rb', line 28 def to_s to_a.join('.') end |