class PubGrub::Version

Defined in:

pubgrub/version/version.cr

Constructors

Class Method Summary

Instance Method Summary

Macro Summary

Instance methods inherited from class PubGrub::Range

<(other : Range) : Bool <, <=(other : Range) : Bool <=, <=>(other : Range) : Int <=>, ==(other : Range) : Bool ==, >(other : Range) : Bool >, >=(other : Range) : Bool >=, adjacent_to?(other : VersionConstraint) : Bool adjacent_to?, allows?(other : VersionConstraint) : Bool allows?, allows_all?(other : VersionConstraint) : Bool allows_all?, allows_any?(other : VersionConstraint) : Bool allows_any?, allows_higher?(other : VersionConstraint) : Bool allows_higher?, allows_lower?(other : Range) : Bool allows_lower?, any? : Bool any?, difference(other : VersionConstraint) : VersionConstraint difference, empty? : Bool empty?, include_max? : Bool include_max?, include_min? : Bool include_min?, intersect(other : VersionConstraint) : VersionConstraint intersect, max : Version max, max? : Version | Nil max?, min : Version min, min? : Version | Nil min?, strictly_higher?(other : Range) : Bool strictly_higher?, strictly_lower?(other : VersionConstraint) : Bool strictly_lower?, to_s(io : IO) : Nil to_s, union(other : VersionConstraint) : VersionConstraint union

Constructor methods inherited from class PubGrub::Range

new(*, min : Nil | PubGrub::Version = nil, max : Nil | PubGrub::Version = nil, include_min : Bool = false, include_max : Bool = false) new

Instance methods inherited from class PubGrub::VersionConstraint

allows?(other : VersionConstraint) : Bool allows?, allows_all?(other : VersionConstraint) : Bool allows_all?, allows_any?(other : VersionConstraint) : Bool allows_any?, any? : Bool any?, difference(other : VersionConstraint) : VersionConstraint difference, empty? : Bool empty?, intersect(other : VersionConstraint) : VersionConstraint intersect, union(other : VersionConstraint) : VersionConstraint union

Constructor Detail

def self.new(inner : SemanticVersion) #

[View source]

Class Method Detail

def self.parse(text : String) #

[View source]

Instance Method Detail

def <(other : VersionConstraint) #

[View source]
def >(other : VersionConstraint) #

[View source]
def allows?(other : VersionConstraint) : Bool #

[View source]
def allows_all?(other : VersionConstraint) : Bool #

[View source]
def allows_any?(other : VersionConstraint) : Bool #

[View source]
def any? : Bool #

[View source]
def difference(other : VersionConstraint) : VersionConstraint #

[View source]
def empty? : Bool #

[View source]
def include_max? : Bool #

[View source]
def include_min? : Bool #

[View source]
def intersect(other : VersionConstraint) : VersionConstraint #

[View source]
def max : Version #

[View source]
def max? : Version | Nil #

[View source]
def min : Version #

[View source]
def min? : Version | Nil #

[View source]
def union(other : VersionConstraint) : VersionConstraint #

[View source]

Macro Detail

macro method_missing(call) #

[View source]