class AdventOfCode2021::Day22::Range

Defined in:

day22/day22.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(begin __arg0 : Int32, end __arg1 : Int32) #

[View source]

Instance Method Detail

def ==(other : Range) #

[View source]
def begin : Int32 #

[View source]
def end : Int32 #

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

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

[View source]
def intersection(other : Range) : Range #

[View source]
def intersection?(other : Range) : Range | Nil #

[View source]
def size #

[View source]
def split_by(other : Range) #

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

[View source]