Module: OmniAuth::Mastodon::Version

Defined in:
lib/omniauth/mastodon/version.rb

Class Method Summary collapse

Class Method Details

.majorObject



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

def major
  0
end

.minorObject



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

def minor
  9
end

.patchObject



14
15
16
# File 'lib/omniauth/mastodon/version.rb', line 14

def patch
  15
end

.preObject



18
19
20
# File 'lib/omniauth/mastodon/version.rb', line 18

def pre
  nil
end

.to_aObject



22
23
24
# File 'lib/omniauth/mastodon/version.rb', line 22

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

.to_sObject



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

def to_s
  to_a.join('.')
end