class TowersOfHanoi::Board::Brick

Attributes

width[R]

Public Class Methods

new(width: 0) click to toggle source
# File lib/towers_of_hanoi/board/brick.rb, line 6
def initialize(width: 0)
  @width = width
end

Public Instance Methods

<(brick) click to toggle source
# File lib/towers_of_hanoi/board/brick.rb, line 10
def <(brick)
  width < brick.width
end