Sha256: 3e69a31556122323154379c0decb95d207efd948a5fd3a2d510c0cdb3f9e49f7

Contents?: true

Size: 388 Bytes

Versions: 1

Compression:

Stored size: 388 Bytes

Contents

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