summaryrefslogtreecommitdiffstats
path: root/lib/puppet/file_collection/lookup.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/file_collection/lookup.rb')
-rw-r--r--lib/puppet/file_collection/lookup.rb22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/puppet/file_collection/lookup.rb b/lib/puppet/file_collection/lookup.rb
index ddb0c8431..30679480d 100644
--- a/lib/puppet/file_collection/lookup.rb
+++ b/lib/puppet/file_collection/lookup.rb
@@ -3,18 +3,18 @@ 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
+ attr_accessor :line, :file_index
- def file_collection
- Puppet::FileCollection.collection
- end
+ def file_collection
+ Puppet::FileCollection.collection
+ end
- def file=(path)
- @file_index = file_collection.index(path)
- end
+ def file=(path)
+ @file_index = file_collection.index(path)
+ end
- def file
- return nil unless file_index
- file_collection.path(file_index)
- end
+ def file
+ return nil unless file_index
+ file_collection.path(file_index)
+ end
end