Class: Clutter::ActorIter
- Inherits:
-
Object
- Object
- Clutter::ActorIter
- Defined in:
- lib/clutter/actor-iter.rb
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(root) ⇒ ActorIter
constructor
A new instance of ActorIter.
Constructor Details
Instance Method Details
#each ⇒ Object
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 |