The code powering m.abunchtell.com https://m.abunchtell.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

32 lines
324 B

  1. # frozen_string_literal: true
  2. module Mastodon
  3. module Version
  4. module_function
  5. def major
  6. 1
  7. end
  8. def minor
  9. 3
  10. end
  11. def patch
  12. 2
  13. end
  14. def pre
  15. nil
  16. end
  17. def to_a
  18. [major, minor, patch, pre].compact
  19. end
  20. def to_s
  21. to_a.join('.')
  22. end
  23. end
  24. end