struct Zap::Utils::Semver::Range

Overview

A range is composed of one or more comparator sets, joined by ||. A version matches a range if and only if every comparator in at least one of the ||-separated comparator sets is satisfied by the version.

Defined in:

utils/semver/range.cr

Constructors

Class Method Summary

Instance Method Summary

Macro Summary

Instance methods inherited from class Object

or(other : T) : T | self forall T or, pipe(&) pipe

Constructor Detail

def self.new #

[View source]
def self.parse(str : String) : Range #

[View source]

Class Method Detail

def self.parse?(str : String) : Range | Nil #

[View source]

Instance Method Detail

def ==(other : self) #

def canonical : String #

[View source]
def clone #

Returns a copy of self with all instance variables cloned.


[View source]
def comparator_sets : Array(Zap::Utils::Semver::ComparatorSet) #

[View source]
def exact_match? #

[View source]
def hash(hasher) #
Description copied from struct Struct

See Object#hash(hasher)


def initialize #

[View source]
def intersection?(other : self) : self | Nil #

[View source]
def satisfies?(version_str : String) #

[View source]
def to_s(io) #

[View source]

Macro Detail

macro method_missing(call) #

[View source]