Sha256: 847cf24064d2d7d64fc04882b197a7c36d3443783b6ca36f3204626c633f1ae3

Contents?: true

Size: 275 Bytes

Versions: 5

Compression:

Stored size: 275 Bytes

Contents

class ResourceWithContexts
  include Enumerable

  def initialize(options)
    @resource = options.fetch(:resource)
    @graph = options.fetch(:graph)
  end

  def each
    @resource.each do |fact|
      yield FactWithContext.new(fact: fact, graph: @graph)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dbd_data_engine-0.0.10 app/presenters/resource_with_contexts.rb
dbd_data_engine-0.0.9 app/presenters/resource_with_contexts.rb
dbd_data_engine-0.0.8 app/presenters/resource_with_contexts.rb
dbd_data_engine-0.0.7 app/presenters/resource_with_contexts.rb
dbd_data_engine-0.0.6 app/presenters/resource_with_contexts.rb