class PubGrub::Range
- PubGrub::Range
- PubGrub::VersionConstraint
- Reference
- Object
Direct Known Subclasses
Defined in:
pubgrub/version/range.crConstructors
Instance Method Summary
- #<(other : Range) : Bool
- #<=(other : Range) : Bool
- #<=>(other : Range) : Int
- #==(other : Range) : Bool
- #>(other : Range) : Bool
- #>=(other : Range) : Bool
- #adjacent_to?(other : VersionConstraint) : Bool
- #allows?(other : VersionConstraint) : Bool
- #allows_all?(other : VersionConstraint) : Bool
- #allows_any?(other : VersionConstraint) : Bool
- #allows_higher?(other : VersionConstraint) : Bool
- #allows_lower?(other : Range) : Bool
- #any? : Bool
- #difference(other : VersionConstraint) : VersionConstraint
- #empty? : Bool
- #include_max? : Bool
- #include_min? : Bool
- #intersect(other : VersionConstraint) : VersionConstraint
- #max : Version
- #max? : Version | Nil
- #min : Version
- #min? : Version | Nil
- #strictly_higher?(other : Range) : Bool
- #strictly_lower?(other : VersionConstraint) : Bool
-
#to_s(io : IO) : Nil
Appends a short String representation of this object which includes its class name and its object address.
- #union(other : VersionConstraint) : VersionConstraint
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)
#
Instance Method Detail
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>