Class: ATSPI::Accessible::Table::Cell::Rows
- Inherits:
-
Object
- Object
- ATSPI::Accessible::Table::Cell::Rows
- Includes:
- SelectableCollection::Selected
- Defined in:
- lib/atspi/accessible/table/cell/rows.rb
Overview
Represents the rows a table ATSPI::Accessible::Table::Cell spans.
Instance are enumerables supporting item access and can be treated more or less like an array.
Enumerable interface collapse
-
#[](idx) ⇒ Object
included
from Collection
alias for #at.
-
#at(n) ⇒ Row
The n’th row of the cell.
-
#count ⇒ Integer
The number of rows the cell spans.
-
#each ⇒ Object
included
from Collection
prerequisite for Enumerable.
-
#last(n = 1) ⇒ Object+
included
from Collection
Item(s) from the end.
-
#length ⇒ Object
included
from Collection
alias for #count.
-
#size ⇒ Object
included
from Collection
alias for #count.
Representation collapse
-
#inspect ⇒ String
included
from SelectableCollection::Selected
Instance as inspectable string.
Instance Method Details
#[](idx) ⇒ Object Originally defined in module Collection
alias for #at
#at(n) ⇒ Row
Returns the n’th row of the cell.
26 27 28 29 30 |
# File 'lib/atspi/accessible/table/cell/rows.rb', line 26 def at(n) super do |mapped_idx| Row.new(@native.get_parent, @first_idx+mapped_idx) end end |
#count ⇒ Integer
Returns the number of rows the cell spans.
35 36 37 |
# File 'lib/atspi/accessible/table/cell/rows.rb', line 35 def count row_col_span[3] end |
#each ⇒ Object Originally defined in module Collection
prerequisite for Enumerable
#inspect ⇒ String Originally defined in module SelectableCollection::Selected
Returns instance as inspectable string.
#last(n = 1) ⇒ Object+ Originally defined in module Collection
Returns item(s) from the end.
#length ⇒ Object Originally defined in module Collection
alias for #count
#size ⇒ Object Originally defined in module Collection
alias for #count