Class: Clutter::ActorIter

Inherits:
Object
  • Object
show all
Defined in:
lib/clutter/actor-iter.rb

Instance Method Summary collapse

Constructor Details

#initialize(root) ⇒ ActorIter

Returns a new instance of ActorIter.



20
21
22
23
# File 'lib/clutter/actor-iter.rb', line 20

def initialize(root)
  super()
  init(root)
end

Instance Method Details

#eachObject



25
26
27
28
29
30
31
# File 'lib/clutter/actor-iter.rb', line 25

def each
  loop do
    have_next, child = self.next
    break unless have_next
    yield(child)
  end
end