class AdventOfCode2021::Day22::Range
- AdventOfCode2021::Day22::Range
- Reference
- Object
Defined in:
day22/day22.crConstructors
Instance Method Summary
- #==(other : Range)
- #begin : Int32
- #end : Int32
- #has_intersection?(other : Range) : Bool
- #includes?(other : Range) : Bool
- #intersection(other : Range) : Range
- #intersection?(other : Range) : Range | Nil
- #size
- #split_by(other : Range)
-
#to_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
Constructor Detail
Instance Method Detail
def to_s(io : IO)
#
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>