Module: MyVR::Version

Defined in:
lib/myvr/version.rb

Class Method Summary collapse

Class Method Details

.majorObject



4
5
6
# File 'lib/myvr/version.rb', line 4

def major
  0
end

.minorObject



8
9
10
# File 'lib/myvr/version.rb', line 8

def minor
  0
end

.patchObject



12
13
14
# File 'lib/myvr/version.rb', line 12

def patch
  1
end

.to_aObject



24
25
26
# File 'lib/myvr/version.rb', line 24

def to_a
  [major, minor, patch].compact
end

.to_hObject



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_sObject



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

def to_s
  to_a.join('.')
end