timcase/echonest

View on GitHub
lib/echowrap/version.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Echowrap
  class Version
    MAJOR = 0 unless defined? Echowrap::Version::MAJOR
    MINOR = 2 unless defined? Echowrap::Version::MINOR
    PATCH = 0 unless defined? Echowrap::Version::PATCH
    PRE = nil unless defined? Echowrap::Version::PRE

    class << self

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

    end

  end
end