lib/mazes/cell.rb
# Public: Destroys a link between a pair of Cells.
#
# cell - The foreign Cell object from which a Cell is unlinking
# bidi - A Boolean determining whether to call this method on the foreign Cell.
#
# When called publicly, this method unlinks the foreign Cell from 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 unlink.
#
# Returns self.
Destroys a link between a pair of Cells.
cell - The foreign Cell object from which a Cell is unlinking
bidi - A Boolean determining whether to call this method on the foreign Cell.

When called publicly, this method unlinks the foreign Cell from 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 unlink.

Returns self.
Destroys a link between a pair of Cells . cell - The foreign Cell object from which a Cell is unlinking bidi - A Boolean determining whether to call this method on the foreign Cell . When called publicly this method unlinks the foreign Cell from 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 unlink . Returns self .
def unlink cell:, bidi: true
			@links.delete cell
			cell.unlink cell: self, bidi: false if bidi
			self
		end
def unlink cell : , bidi : true @links . delete cell cell . unlink cell : self , bidi : false if bidi self end
Public: Destroys a link between a pair of Cells.
Public : Destroys a link between a pair of Cells .
cell
<not_specific>
bidi
<not_specific>