Method: ATSPI::Collection#at
- Defined in:
- lib/atspi/collection.rb
#at(idx) ⇒ Object
Returns item at index idx
.
18 19 20 21 22 23 24 25 26 |
# File 'lib/atspi/collection.rb', line 18 def at(idx) if idx.between?(0, count-1) yield idx elsif idx.between?(-count, -1) yield count+idx else nil end end |