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