struct

Mrcv::Core::VersionRange

Inherits Struct < Value < Object

Constructors

exact(version : Version) : VersionRange
Source
new(requirements : Array(Requirement) = [] of Requirement, empty : Bool = false)
Source
none
Source
parse(expression : String) : VersionRange
Source

Class methods

parse?(expression : String) : VersionRange | Nil
Source

Instance methods

empty?
Source
includes?(version : Version) : Bool
Source
intersect(other : VersionRange) : VersionRange
Source
max_bound

Returns the effective maximum version bound if bounded from above

Source
min_bound

Returns the effective minimum version bound if bounded from below

Source
normalize

Normalizes requirements, removes redundant constraints, and detects contradictions

Source
requirements
Source
to_s(io : IO) : Nil

Same as #inspect(io).

Source
unconstrained?

Returns true if this range is unconstrained/matches any version

Source
wildcard?

Alias for unconstrained?

Source