struct Zap::Utils::Semver::Version
- Zap::Utils::Semver::Version
- Struct
- Value
- Object
Included Modules
- Comparable(Zap::Utils::Semver::Version)
Defined in:
utils/semver/version.crConstructors
- .new(major : UInt128, minor : UInt128, patch : UInt128, prerelease : Prerelease | Nil, build_metadata : String | Nil)
- .new(major : UInt128 = 0, minor : UInt128 = 0, patch : UInt128 = 0, prerelease = nil, build_metadata : Nil | String = nil)
- .new(partial : Regex::MatchData)
- .new(partial : Partial)
Class Method Summary
Instance Method Summary
- #<=>(other : self) : Int32
- #build_metadata : String | Nil
-
#clone
Returns a copy of
self
with all instance variables cloned. - #copy_with(major _major = @major, minor _minor = @minor, patch _patch = @patch, prerelease _prerelease = @prerelease, build_metadata _build_metadata = @build_metadata)
- #increment(field : Symbol, *, by : Int32 = 1) : self
- #major : UInt128
- #max?
- #minor : UInt128
- #patch : UInt128
- #prerelease : Prerelease | Nil
- #prerelease?
- #same_version_numbers?(other : self)
- #to_s(io)
- #zero?
Constructor Detail
def self.new(major : UInt128, minor : UInt128, patch : UInt128, prerelease : Prerelease | Nil, build_metadata : String | Nil)
#
def self.new(major : UInt128 = 0, minor : UInt128 = 0, patch : UInt128 = 0, prerelease = nil, build_metadata : Nil | String = nil)
#
Class Method Detail
Instance Method Detail
def copy_with(major _major = @major, minor _minor = @minor, patch _patch = @patch, prerelease _prerelease = @prerelease, build_metadata _build_metadata = @build_metadata)
#