Module: ReapMotion::ListHelper

Instance Method Summary collapse

Instance Method Details

#<<(other) ⇒ Object



5
6
7
# File 'lib/reapmotion/util/list_helper.rb', line 5

def <<(other)
  append(other)
end

#[](index) ⇒ Object



9
10
11
# File 'lib/reapmotion/util/list_helper.rb', line 9

def [](index)
  get(index)
end

#eachObject



13
14
15
16
17
18
# File 'lib/reapmotion/util/list_helper.rb', line 13

def each
  iter = iterator
  while iter.has_next
    yield iter.next
  end
end