class PubGrub::Range

Direct Known Subclasses

Defined in:

pubgrub/version/range.cr

Constructors

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(*, min : Nil | PubGrub::Version = nil, max : Nil | PubGrub::Version = nil, include_min : Bool = false, include_max : Bool = false) #

[View source]

Instance Method Detail

def <(other : Range) : Bool #

[View source]
def <=(other : Range) : Bool #

[View source]
def <=>(other : Range) : Int #

[View source]
def ==(other : Range) : Bool #

[View source]
def >(other : Range) : Bool #

[View source]
def >=(other : Range) : Bool #

[View source]
def adjacent_to?(other : VersionConstraint) : 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 allows_higher?(other : VersionConstraint) : Bool #

[View source]
def allows_lower?(other : Range) : 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 strictly_higher?(other : Range) : Bool #

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

[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]