struct

AoC2019::Day3::Point

Inherits Comparable < Struct < Value < Object

Constants

ZERO = self.new(0, 0)

Constructors

new(x : Int32, y : Int32)
Source

Instance methods

<=>(other : self)
Source
down(step : Int32)
Source
left(step : Int32)
Source
manhattan_distance(from : Point = ZERO)
Source
move(command : String)
Source
right(step : Int32)
Source
to_s(io : IO)

Same as #inspect(io).

Source
up(step : Int32)
Source