Module: Mastodon::Version
- Defined in:
- lib/mastodon/version.rb
Overview
Sets version information for this gem.
Class Method Summary collapse
Class Method Details
.major ⇒ Object
8 9 10 |
# File 'lib/mastodon/version.rb', line 8 def major 0 end |
.minor ⇒ Object
12 13 14 |
# File 'lib/mastodon/version.rb', line 12 def minor 4 end |
.patch ⇒ Object
16 17 18 |
# File 'lib/mastodon/version.rb', line 16 def patch 0 end |
.pre ⇒ Object
20 21 22 |
# File 'lib/mastodon/version.rb', line 20 def pre nil end |
.to_a ⇒ Object
24 25 26 |
# File 'lib/mastodon/version.rb', line 24 def to_a [major, minor, patch, pre].compact end |
.to_s ⇒ Object
28 29 30 |
# File 'lib/mastodon/version.rb', line 28 def to_s to_a.join('.') end |