Class: ATSPI::Accessible::Table::Cells
- Defined in:
- lib/atspi/accessible/table/cells.rb
Overview
Represents all cells in a ATSPI::Accessible::Table. Cells are also the children of their ATSPI::Accessible::Table.
Enumerable interface collapse
-
#at(idx = nil) ⇒ Cell
The cell at
idxor at (row,column). -
#at_coords(row:, column:) ⇒ Cell
The cell at (
row,column).
Instance Method Details
#at(idx) ⇒ Cell #at(row: , column: ) ⇒ Cell
Returns the cell at idx or at (row,column).
17 18 19 20 21 22 23 |
# File 'lib/atspi/accessible/table/cells.rb', line 17 def at(idx = nil) if idx.is_a? Numeric Cell.new(@native.child_at_index(idx)) else at_coords(idx) end end |
#at_coords(row:, column:) ⇒ Cell
Returns the cell at (row,column).
31 32 33 |
# File 'lib/atspi/accessible/table/cells.rb', line 31 def at_coords(row:, column:) Cell.new(@native.accessible_at(row, column)) end |