Sha256: 1af05ff33320f8b7d30397b5f5b1a8ec4f1bb914126657f54fe4f94c3d427728

Contents?: true

Size: 221 Bytes

Versions: 4

Compression:

Stored size: 221 Bytes

Contents

module Compositor
  module Renderer
    class Iterator < Base
      def render
        result = []
        collection.each do |item|
          result << item.to_hash
        end
        result
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
compositor-2.0.1 lib/compositor/renderer/iterator.rb
compositor-2.0.0 lib/compositor/renderer/iterator.rb
compositor-1.0.1 lib/compositor/renderer/iterator.rb
compositor-1.0.0 lib/compositor/renderer/iterator.rb