Class: Cheat::Version

Inherits:
Object
  • Object
show all
Defined in:
lib/cheat/version.rb

Class Method Summary collapse

Class Method Details

.majorInteger

Returns:

  • (Integer)


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

def major
  1
end

.minorInteger

Returns:

  • (Integer)


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

def minor
  3
end

.patchInteger

Returns:

  • (Integer)


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

def patch
  3
end

.preString, NilClass

Returns:



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

def pre
  nil
end

.to_sString

Returns:



26
27
28
# File 'lib/cheat/version.rb', line 26

def to_s
  [major, minor, patch, pre].compact.join('.')
end