class

PubGrub::Range

Inherits PubGrub::VersionConstraint < Reference < Object

Constructors

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

Instance methods

<(other : Range) : Bool
Source
<=(other : Range) : Bool
Source
<=>(other : Range) : Int
Source
==(other : Range) : Bool
Source
>(other : Range) : Bool
Source
>=(other : Range) : Bool
Source
adjacent_to?(other : VersionConstraint) : Bool
Source
allows?(other : VersionConstraint) : Bool
Source
allows_all?(other : VersionConstraint) : Bool
Source
allows_any?(other : VersionConstraint) : Bool
Source
allows_higher?(other : VersionConstraint) : Bool
Source
allows_lower?(other : Range) : 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
strictly_higher?(other : Range) : Bool
Source
strictly_lower?(other : VersionConstraint) : Bool
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