Sha256: 2aee77c03f0882c1ffdd6cb3dc6c38cdf1ed017880a62b0648407317d1dc7832
Contents?: true
Size: 570 Bytes
Versions: 1
Compression:
Stored size: 570 Bytes
Contents
module Bluepill module Version module_function # @return [Integer] def major 0 end # @return [Integer] def minor 1 end # @return [Integer] def patch 1 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 to_h.values.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 |
---|---|
bluepill-0.1.1 | lib/bluepill/version.rb |