Sha256: 8bcc8f369a839dd438099ab59ed5396b4c0eec97e811dd5194829a0875fe0c84

Contents?: true

Size: 386 Bytes

Versions: 1

Compression:

Stored size: 386 Bytes

Contents

module T
  class Version

    # @return [Integer]
    def self.major
      0
    end

    # @return [Integer]
    def self.minor
      5
    end

    # @return [Integer]
    def self.patch
      1
    end

    # @return [String, NilClass]
    def self.pre
      nil
    end

    # @return [String]
    def self.to_s
      [major, minor, patch, pre].compact.join('.')
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
t-0.5.1 lib/t/version.rb