File: version.rb

package info (click to toggle)
ruby-launchy 3.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 304 kB
  • sloc: ruby: 1,051; makefile: 6
file content (20 lines) | stat: -rw-r--r-- 365 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

module Launchy
  VERSION = "3.1.1"

  # Internal: Version number of Launchy
  module Version
    MAJOR   = Integer(VERSION.split(".")[0])
    MINOR   = Integer(VERSION.split(".")[1])
    PATCH   = Integer(VERSION.split(".")[2])

    def self.to_a
      [MAJOR, MINOR, PATCH]
    end

    def self.to_s
      VERSION
    end
  end
end