Sha256: c32d08e0e639d16d7ea33293f6fcf0c9d80767eb41247cc6878e82135e4aa174
Contents?: true
Size: 447 Bytes
Versions: 8
Compression:
Stored size: 447 Bytes
Contents
require 'puppet/file_collection' # A simple module for looking up file paths and indexes # in a file collection. module Puppet::FileCollection::Lookup attr_accessor :line, :file_index def file_collection Puppet::FileCollection.collection end def file=(path) @file_index = file_collection.index(path) end def file return nil unless file_index file_collection.path(file_index) end end
Version data entries
8 entries across 8 versions & 1 rubygems