Module: Crucigrama::Crossword::LineQuery
- Included in:
- Crucigrama::Crossword
- Defined in:
- lib/crucigrama/crossword/line_query.rb
Overview
This module provides methods for querying lines (rows or columns) on a crossword
Instance Method Summary collapse
-
#column(coordinate) ⇒ String
The column with the specified number.
-
#row(coordinate) ⇒ String
The row with the specified number.
Instance Method Details
#column(coordinate) ⇒ String
Returns the column with the specified number.
13 14 15 |
# File 'lib/crucigrama/crossword/line_query.rb', line 13 def column(coordinate) line(coordinate, :vertical) end |
#row(coordinate) ⇒ String
Returns the row with the specified number.
6 7 8 |
# File 'lib/crucigrama/crossword/line_query.rb', line 6 def row(coordinate) line(coordinate, :horizontal) end |