Class: Compositor::Renderer::Iterator

Inherits:
Base
  • Object
show all
Defined in:
lib/compositor/renderer/iterator.rb

Instance Attribute Summary

Attributes inherited from Base

#collection, #composite

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Compositor::Renderer::Base

Instance Method Details

#renderObject



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