lib/compositor/renderer/iterator.rb in compositor-0.1.4 vs lib/compositor/renderer/iterator.rb in compositor-1.0.0

- old
+ new

@@ -1,9 +1,13 @@ module Compositor module Renderer class Iterator < Base def render - collection.inject([]) { |memo, item| memo << item.to_hash; memo } + result = [] + collection.each do |item| + result << item.to_hash + end + result end end end end