Sha256: 24c9db5df74daf8179087b7024a2b91c265475357319af9b1fb469a01efe741b
Contents?: true
Size: 270 Bytes
Versions: 2
Compression:
Stored size: 270 Bytes
Contents
require "tmpdir" require "fileutils" class FileCreator attr_accessor :file_name def initialize(value) self.file_name = value end def save(wait = 0) sleep wait FileUtils.touch path end def path File.join(Dir.tmpdir, file_name) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
callisto-0.9.1 | spec/support/file_creator.rb |
callisto-0.9 | spec/support/file_creator.rb |