Method: Doku::PuzzleOnGrid#get

Defined in:
lib/doku/grid.rb

#get(x, y) ⇒ Object

Gets the glyph assignment for a given square.

Parameters:

  • x (Integer)

    The x coordinate of the square.

  • x (Integer)

    The y coordinate of the square.

Returns:

  • (Object)

    The glyph assigned to that square, or nil if none is assigned.



194
195
196
# File 'lib/doku/grid.rb', line 194

def get(x, y)
  self[SquareOnGrid.new(x, y)]
end