# File lib/rscm/line_editor.rb, line 35 def File.comment_out(path, line_regex, comment_template) temp_file = Tempfile.new(File.basename(path)) temp_file_path = temp_file.path original = File.new(path) RSCM::LineEditor.comment_out(original, line_regex, comment_template, temp_file) temp_file.close original.close File.copy(temp_file_path, path) end
Generated with the Darkfish Rdoc Generator 2.