Module: Mastodon::Version

Defined in:
lib/mastodon/version.rb

Overview

Sets version information for this gem.

Class Method Summary collapse

Class Method Details

.majorObject



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

def major
  0
end

.minorObject



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

def minor
  4
end

.patchObject



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

def patch
  0
end

.preObject



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

def pre
  nil
end

.to_aObject



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

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

.to_sObject



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

def to_s
  to_a.join('.')
end