Class: Compositor::Renderer::Iterator
- Defined in:
- lib/compositor/renderer/iterator.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Compositor::Renderer::Base
Instance Method Details
#render ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/compositor/renderer/iterator.rb', line 4 def render result = [] collection.each do |item| result << item.to_hash end result end |