Sha256: 9d9b3d8f14402f892ba2a7ab9c54b8a3b10ed6ebe349df73e3bd588fbdedd278

Contents?: true

Size: 289 Bytes

Versions: 1

Compression:

Stored size: 289 Bytes

Contents

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

    class << self

      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
lelylan-rb-0.1.0 lib/lelylan/version.rb