Module: Mastodon::Version
- Defined in:
- lib/mastodon/version.rb
Class Method Summary collapse
Class Method Details
.major ⇒ Object
5 6 7 |
# File 'lib/mastodon/version.rb', line 5 def major 2 end |
.minor ⇒ Object
9 10 11 |
# File 'lib/mastodon/version.rb', line 9 def minor 0 end |
.patch ⇒ Object
13 14 15 |
# File 'lib/mastodon/version.rb', line 13 def patch 0 end |
.pre ⇒ Object
17 18 19 |
# File 'lib/mastodon/version.rb', line 17 def pre nil end |
.to_a ⇒ Object
21 22 23 |
# File 'lib/mastodon/version.rb', line 21 def to_a [major, minor, patch, pre].compact end |
.to_s ⇒ Object
25 26 27 |
# File 'lib/mastodon/version.rb', line 25 def to_s to_a.join('.') end |