Class: ATSPI::Accessible::Table::Rows
- Inherits:
-
Object
- Object
- ATSPI::Accessible::Table::Rows
- Includes:
- SelectableCollection
- Defined in:
- lib/atspi/accessible/table/rows.rb
Overview
Represents all rows in a ATSPI::Accessible::Table
Defined Under Namespace
Classes: Selected
Enumerable interface collapse
-
#[](idx) ⇒ Object
included
from Collection
alias for #at.
-
#at(idx) ⇒ Row
The row at index
idx
. -
#count ⇒ Integer
Its number of rows.
-
#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.
Selection collapse
-
#deselect_all ⇒ true, false
included
from SelectableCollection
Deselects all items.
-
#select_all ⇒ true, false
included
from SelectableCollection
Selects all items.
-
#selected ⇒ Selected
included
from SelectableCollection
Its selected subset.
Representation collapse
-
#inspect ⇒ String
included
from SelectableCollection
Instance as inspectable string.
Instance Method Details
#[](idx) ⇒ Object Originally defined in module Collection
alias for #at
#at(idx) ⇒ Row
Returns the row at index idx
.
16 17 18 19 20 |
# File 'lib/atspi/accessible/table/rows.rb', line 16 def at(idx) super do |mapped_idx| Row.new(@native, mapped_idx) end end |
#count ⇒ Integer
Returns its number of rows.
25 26 27 |
# File 'lib/atspi/accessible/table/rows.rb', line 25 def count @native.n_rows end |
#deselect_all ⇒ true, false Originally defined in module SelectableCollection
Deselects all items
#each ⇒ Object Originally defined in module Collection
prerequisite for Enumerable
#inspect ⇒ String Originally defined in module SelectableCollection
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
#select_all ⇒ true, false Originally defined in module SelectableCollection
Selects all items
#selected ⇒ Selected Originally defined in module SelectableCollection
Returns its selected subset.
#size ⇒ Object Originally defined in module Collection
alias for #count