Class: ATSPI::Accessible::Children::Selected
- Inherits:
-
Object
- Object
- ATSPI::Accessible::Children::Selected
- Includes:
- SelectableCollection::Selected
- Defined in:
- lib/atspi/accessible/children/selected.rb
Overview
Wraps libatspi’s AtspiSelection together with parts of Selectable and ATSPI::Accessible::Children
Enumerable interface collapse
-
#[](idx) ⇒ Object
included
from Collection
alias for #at.
-
#at(idx) ⇒ Accessible
Its child at index
idx
. -
#count ⇒ Integer
Its number of children.
-
#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(idx) ⇒ Accessible
Returns its child at index idx
.
18 19 20 21 22 |
# File 'lib/atspi/accessible/children/selected.rb', line 18 def at(idx) super do |mapped_idx| Accessible.new(@native.selected_child(mapped_idx)) end end |
#count ⇒ Integer
Returns its number of children.
27 28 29 |
# File 'lib/atspi/accessible/children/selected.rb', line 27 def count @native.n_selected_children 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