class

PubGrub::Union

Inherits PubGrub::VersionConstraint < Reference < Object

Constructors

new(ranges : Array(PubGrub::Range))
Source

Class methods

of(ranges : Enumerable(VersionConstraint))
Source
of(*ranges : VersionConstraint)
Source

Instance methods

==(other : Union) : Bool
Source
allows?(other : VersionConstraint) : Bool
Source
allows_all?(other : VersionConstraint) : Bool
Source
allows_any?(other : VersionConstraint) : Bool
Source
any?
Source
difference(other : VersionConstraint) : VersionConstraint
Source
empty?
Source
include_max?
Source
include_min?
Source
intersect(other : VersionConstraint) : VersionConstraint
Source
max?
Source
min?
Source
ranges
Source
to_s(io : IO) : Nil

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>
Source
union(other : VersionConstraint) : VersionConstraint
Source