Sha256: 14549ab901c69d86aa25f600d5e4f4ce16256647eaf70af801aac7896c740504

Contents?: true

Size: 202 Bytes

Versions: 11

Compression:

Stored size: 202 Bytes

Contents

require "fileutils"
require "tmpdir"

require_relative "temp_dir"

class TempDir

  attr_reader :path

  def initialize
    @path = Dir.mktmpdir
    at_exit { FileUtils.remove_entry(@path) }
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
cute_print-1.1.4 features/support/helpers/temp_dir.rb
cute_print-1.1.3 features/support/helpers/temp_dir.rb
cute_print-1.1.2 features/support/helpers/temp_dir.rb
cute_print-1.1.1 features/support/helpers/temp_dir.rb
cute_print-1.1.0 features/support/helpers/temp_dir.rb
cute_print-1.0.1 features/support/helpers/temp_dir.rb
cute_print-1.0.0 features/support/helpers/temp_dir.rb
cute_print-0.4.0 features/support/helpers/temp_dir.rb
cute_print-0.3.0 features/support/helpers/temp_dir.rb
cute_print-0.2.0 features/support/helpers/temp_dir.rb
cute_print-0.1.0 features/support/helpers/temp_dir.rb