Sha256: 1e2f032a6408dbe0b10e6e3c209f10cc984d5a81fcdac78fa333f11e787749d3

Contents?: true

Size: 387 Bytes

Versions: 1

Compression:

Stored size: 387 Bytes

Contents

module Wayback
  class Version
    MAJOR = 0 unless defined? Wayback::Version::MAJOR
    MINOR = 2 unless defined? Wayback::Version::MINOR
    PATCH = 0 unless defined? Wayback::Version::PATCH
    PRE = nil unless defined? Wayback::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
wayback-0.2.0 lib/wayback/version.rb