Sha256: d1e1212d432f14bb0b1917cde3f46b433494fdc62307002a3f8a60f1b3fa445b

Contents?: true

Size: 237 Bytes

Versions: 1

Compression:

Stored size: 237 Bytes

Contents

module Plucky
  class Transformer
    def initialize(view, transformer)
      @view = view
      @transformer = transformer
    end

    def each
      @view.each do |doc|
        yield @transformer.call(doc)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
plucky-0.8.0 lib/plucky/transformer.rb