Sha256: e27fc54758a50631cfa0f000e087aeb7cd67a50dc5d80968e240c863e13f0ce5
Contents?: true
Size: 341 Bytes
Versions: 1
Compression:
Stored size: 341 Bytes
Contents
module RobotVim class ScriptFile def self.open(commands) file_name = UUID.new.generate(:compact) 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
robot-vim-0.9.0 | lib/robot-vim/script_file.rb |