struct Zap::Utils::Semver::Comparator
- Zap::Utils::Semver::Comparator
- Struct
- Value
- Object
Overview
A comparator is composed of an operator and a version.
Defined in:
utils/semver/comparator.crConstructors
- .new(operator : Operator, major : UInt128 = 0, minor : UInt128 = 0, patch : UInt128 = 0, prerelease = nil, build_metadata = nil)
- .new(operator : Operator, partial : Regex::MatchData)
- .new(operator : Operator, partial : Partial)
- .new(operator : Operator, version : Zap::Utils::Semver::Version = Version.new)
Class Method Summary
Instance Method Summary
- #build_metadata(*args, **options)
- #build_metadata(*args, **options, &)
-
#clone
Returns a copy of
self
with all instance variables cloned. - #limits : Tuple(Limit, Limit)
- #major(*args, **options)
- #major(*args, **options, &)
- #minor(*args, **options)
- #minor(*args, **options, &)
- #operator : Operator
- #patch(*args, **options)
- #patch(*args, **options, &)
- #pre_compat?(version : Version, allow_prerelease = false) : Bool
- #prerelease(*args, **options)
- #prerelease(*args, **options, &)
- #satisfies?(version : Version, allow_prerelease = false) : Bool
- #to_s(io)
- #version : Version
Constructor Detail
def self.new(operator : Operator, major : UInt128 = 0, minor : UInt128 = 0, patch : UInt128 = 0, prerelease = nil, build_metadata = nil)
#