Sha256: b516702d6b6174d5125c299f150cf9d97799f26e6c83ce6c1f7fc8df28e659c0

Contents?: true

Size: 393 Bytes

Versions: 1

Compression:

Stored size: 393 Bytes

Contents

module Hackeroo
  class Version
    MAJOR = 0 unless defined? Hackeroo::Version::MAJOR
    MINOR = 1 unless defined? Hackeroo::Version::MINOR
    PATCH = 0 unless defined? Hackeroo::Version::PATCH
    PRE = nil unless defined? Hackeroo::Version::PRE

    class << self

      # @return [String]
      def to_s
        [MAJOR, MINOR, PATCH, PRE].compact.join('.')
      end

    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hackeroo-0.1.0 lib/hackeroo/version.rb