Sha256: 5a1840eee222710d4f5749ee5e6b8f94631fd6a47499bd1c6fd677676d7f0c39

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 = 0 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.0 lib/twitter/version.rb