Sha256: 597bc98b3ac7c10f5bf9681880a032e55d15216b4cf364c3ea7c4b8302cd7e94
Contents?: true
Size: 417 Bytes
Versions: 46
Compression:
Stored size: 417 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
46 entries across 46 versions & 3 rubygems