lib/mazes/cell.rb
# Public: Creates a link between a pair of Cells.
#
# cell - The foreign Cell object to which a Cell is linking.
# bidi - A Boolean determining whether to call this method on the foreign Cell.
#
# When called publicly, this method links the foreign Cell to the subject, and
# then calls itself on the foreign Cell. The bidi parameter is used to prevent
# two Cells from perpetually calling each other to link.
#
# Returns self.
Creates a link between a pair of Cells.
cell - The foreign Cell object to which a Cell is linking.
bidi - A Boolean determining whether to call this method on the foreign Cell.

When called publicly, this method links the foreign Cell to the subject, and
then calls itself on the foreign Cell. The bidi parameter is used to prevent
two Cells from perpetually calling each other to link.

Returns self.
Creates a link between a pair of Cells . cell - The foreign Cell object to which a Cell is linking . bidi - A Boolean determining whether to call this method on the foreign Cell . When called publicly this method links the foreign Cell to the subject and then calls itself on the foreign Cell . The bidi parameter is used to prevent two Cells from perpetually calling each other to link . Returns self .
def link cell:, bidi: true
			@links[cell] = true
			cell.link cell: self, bidi: false if bidi
			self
		end
def link cell : , bidi : true @links [ cell ] = true cell . link cell : self , bidi : false if bidi self end
Public: Creates a link between a pair of Cells.
Public : Creates a link between a pair of Cells .
cell
<not_specific>
bidi
<not_specific>