Sha256: c26ce7f9b3ca896129b854b503754f16fb9e0d7461f70e8a8c740fb707562ba8

Contents?: true

Size: 587 Bytes

Versions: 1

Compression:

Stored size: 587 Bytes

Contents

module Twitter
  module Version
  module_function

    # @return [Integer]
    def major
      8
    end

    # @return [Integer]
    def minor
      0
    end

    # @return [Integer]
    def patch
      0
    end

    # @return [Integer, NilClass]
    def pre
      "rc.1"
    end

    # @return [Hash]
    def to_h
      {
        major: major,
        minor: minor,
        patch: patch,
        pre: pre,
      }
    end

    # @return [Array]
    def to_a
      [major, minor, patch, pre].compact
    end

    # @return [String]
    def to_s
      to_a.join(".")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
twitter-8.0.0.rc.1 lib/twitter/version.rb