Sha256: 81f615fd7e9b2ad83884aa9e7abee25e6cd17698031554ca3caad9c02a30d9a7
Contents?: true
Size: 340 Bytes
Versions: 5
Compression:
Stored size: 340 Bytes
Contents
module RobotVim class ScriptFile def self.open(commands) file_name = FileNameGenerator.generate script_file = File.new(file_name, "w") script_file << commands script_file.flush script_file.close yield file_name ensure File.delete(file_name) if File.exists?(file_name) end end end
Version data entries
5 entries across 5 versions & 1 rubygems