Sha256: 6a1cbe23ee9201d289d60f1f65d569defa301db4ed563660b39234f5b1ed00cc

Contents?: true

Size: 352 Bytes

Versions: 1

Compression:

Stored size: 352 Bytes

Contents

module Twitter
  class Version
    MAJOR = 4 unless defined? Twitter::MAJOR
    MINOR = 1 unless defined? Twitter::MINOR
    PATCH = 1 unless defined? Twitter::PATCH
    PRE = nil unless defined? Twitter::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
twitter-4.1.1 lib/twitter/version.rb