Module: WixAnswers::Version

Defined in:
lib/wixanswers/version.rb

Class Method Summary collapse

Class Method Details

.majorObject



5
6
7
# File 'lib/wixanswers/version.rb', line 5

def major
  0
end

.minorObject



9
10
11
# File 'lib/wixanswers/version.rb', line 9

def minor
  0
end

.patchObject



13
14
15
# File 'lib/wixanswers/version.rb', line 13

def patch
  5
end

.preObject



17
18
19
# File 'lib/wixanswers/version.rb', line 17

def pre
  1
end

.to_aObject



30
31
32
# File 'lib/wixanswers/version.rb', line 30

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

.to_hObject



21
22
23
24
25
26
27
28
# File 'lib/wixanswers/version.rb', line 21

def to_h
  {
      major: major,
      minor: minor,
      patch: patch,
      pre: pre,
  }
end

.to_sObject



34
35
36
# File 'lib/wixanswers/version.rb', line 34

def to_s
  to_a.join('.')
end