Sha256: f26e09f765574c5dc0113ea04225581d0d1f42e4936476ca9dce1b9723376325
Contents?: true
Size: 584 Bytes
Versions: 1
Compression:
Stored size: 584 Bytes
Contents
module Twitter module Version module_function # @return [Integer] def major 6 end # @return [Integer] def minor 0 end # @return [Integer] def patch 0 end # @return [Integer, NilClass] def pre nil 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-6.0.0 | lib/twitter/version.rb |