struct Zap::Utils::Semver::ComparatorSet

Overview

Comparators can be joined by whitespace to form a comparator set, which is satisfied by the intersection of all of the comparators it includes.

Defined in:

utils/semver/comparator_set.cr

Constructors

Instance Method 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(scanner : Scanner) : ComparatorSet #

[View source]

Instance Method Detail

def <<(comparator : Comparator) #

[View source]
def ==(other : self) #

def clone #

Returns a copy of self with all instance variables cloned.


[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) : ComparatorSet | Nil #

[View source]
def limits : Tuple(Limit, Limit) #

[View source]
def satisfies?(version : Version) : Bool #

[View source]
def to_s(io) #

[View source]