class AsciiTree::Coordinate

Attributes

x[R]
y[R]

Public Class Methods

new(x:, y:) click to toggle source
# File lib/ascii_tree/coordinate.rb, line 5
def initialize(x:, y:)
  @x = x
  @y = y
end

Public Instance Methods

==(other) click to toggle source
# File lib/ascii_tree/coordinate.rb, line 10
def ==(other)
  x == other.x && y == other.y
end