Sha256: 5ec76958a5e6a8aa70b3e28b291ecfad663ff2d1dc6e2899b3a228a4c6190cd5
Contents?: true
Size: 831 Bytes
Versions: 1
Compression:
Stored size: 831 Bytes
Contents
# frozen_string_literal: true module StandupMD ## # Module that contains all gem version information. Follows semantic # versioning. Read: https://semver.org/ module Version ## # Major version. # # @return [Integer] MAJOR = 0 ## # Minor version. # # @return [Integer] MINOR = 3 ## # Patch version. # # @return [Integer] PATCH = 11 ## # Version as +[MAJOR, MINOR, PATCH]+ # # @return [Array] def self.to_a [MAJOR, MINOR, PATCH] end ## # Version as +MAJOR.MINOR.PATCH+ # # @return [String] def self.to_s to_a.join('.') end ## # Version as +{major: MAJOR, minor: MINOR, patch: PATCH}+ # # @return [Hash] def self.to_h Hash[%i[major minor patch].zip(to_a)] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
standup_md-0.3.11 | lib/standup_md/version.rb |