Fix more rubocop detected style issues
[chef.git] / cookbooks / chef / libraries / edit_file.rb
1 class Chef
2   class Recipe
3     def edit_file(file, &block)
4       Chef::DelayedEvaluator.new do
5         ::File.new(file).collect do |line|
6           block.call(line)
7         end.join("")
8       end
9     end
10   end
11 end