Sha256: f79bbbb9b2da2c9052b49cba382a9f2c1bead6fd6c4425efb21fe88b2b6270bc
Contents?: true
Size: 856 Bytes
Versions: 1
Compression:
Stored size: 856 Bytes
Contents
module OAuth2 module Version module_function # The major version # # @return [Integer] def major 1 end # The minor version # # @return [Integer] def minor 3 end # The patch version # # @return [Integer] def patch 1 end # The pre-release version, if any # # @return [Integer, NilClass] def pre nil end # The version number as a hash # # @return [Hash] def to_h { :major => major, :minor => minor, :patch => patch, :pre => pre, } end # The version number as an array # # @return [Array] def to_a [major, minor, patch, pre].compact end # The version number as a string # # @return [String] def to_s to_a.join('.') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
oauth2-1.3.1 | lib/oauth2/version.rb |