Sha256: 72c984a157b53077e97477d14f727c30e4fb4554d55f1f18940809419ccfbc3a

Contents?: true

Size: 319 Bytes

Versions: 1

Compression:

Stored size: 319 Bytes

Contents

module RailsAdmin
  class Version
    MAJOR = 0 unless defined? MAJOR
    MINOR = 5 unless defined? MINOR
    PATCH = 0 unless defined? PATCH
    PRE = nil unless defined? 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
rails_admin-0.5.0 lib/rails_admin/version.rb