class PubGrub::Union

Defined in:

pubgrub/version/union.cr

Constructors

Class Method Summary

Instance Method Summary

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(ranges : Array(PubGrub::Range)) #

[View source]

Class Method Detail

def self.of(ranges : Enumerable(VersionConstraint)) #

[View source]
def self.of(*ranges : VersionConstraint) #

[View source]

Instance Method Detail

def ==(other : Union) : Bool #

[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? #

[View source]
def include_min? #

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

[View source]
def max #

[View source]
def max? #

[View source]
def min #

[View source]
def min? #

[View source]
def ranges : Array(Range) #

[View source]
def to_s(io : IO) : Nil #
Description copied from class Reference

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>

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

[View source]