module Gio::ListModel

Public Instance Methods

[](index) click to toggle source
# File lib/gio2/list-model.rb, line 28
def [](index)
  get_item(index)
end
each() { |get_item(i)| ... } click to toggle source
# File lib/gio2/list-model.rb, line 21
def each(&block)
  return to_enum(__method__) unless block_given?
  n_items.times do |i|
    yield(get_item(i))
  end
end