Class: TagFormatter::Version

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

Class Method Summary collapse

Class Method Details

.majorInteger

Returns:

  • (Integer)


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

def self.major
  0
end

.minorInteger

Returns:

  • (Integer)


10
11
12
# File 'lib/tag_formatter/version.rb', line 10

def self.minor
  0
end

.patchInteger

Returns:

  • (Integer)


15
16
17
# File 'lib/tag_formatter/version.rb', line 15

def self.patch
  3
end

.preString, NilClass

Returns:

  • (String, NilClass)


20
21
22
# File 'lib/tag_formatter/version.rb', line 20

def self.pre
  nil
end

.to_sString

Returns:

  • (String)


25
26
27
# File 'lib/tag_formatter/version.rb', line 25

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