Module: Caplinked::Version

Defined in:
lib/caplinked/version.rb

Class Method Summary collapse

Class Method Details

.majorInteger

Returns:



6
7
8
# File 'lib/caplinked/version.rb', line 6

def major
  0
end

.minorInteger

Returns:



11
12
13
# File 'lib/caplinked/version.rb', line 11

def minor
  3
end

.patchInteger

Returns:



16
17
18
# File 'lib/caplinked/version.rb', line 16

def patch
  5
end

.preInteger, NilClass

Returns:



21
22
23
# File 'lib/caplinked/version.rb', line 21

def pre
  nil
end

.to_aArray

Returns:



36
37
38
# File 'lib/caplinked/version.rb', line 36

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

.to_hHash

Returns:



26
27
28
29
30
31
32
33
# File 'lib/caplinked/version.rb', line 26

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

.to_sString

Returns:



41
42
43
# File 'lib/caplinked/version.rb', line 41

def to_s
  to_a.join('.')
end