module Workspace

Constants

VERSION

Public Class Methods

dir(path = "/") click to toggle source
# File lib/workspace.rb, line 5
def self.dir(path = "/")
  Workspace::Dir.new(path)
end
file(path, workspace: ".") click to toggle source
# File lib/workspace.rb, line 19
def self.file(path, workspace: ".")
  Workspace::File.new(workspace, path)
end
tmpdir(path = nil) { |dir(tmppath)| ... } click to toggle source
# File lib/workspace.rb, line 9
def self.tmpdir(path = nil, &block)
  if block.nil?
    dir(::Dir.mktmpdir(path))
  else
    ::Dir.mktmpdir(path) do |tmppath|
      yield(dir(tmppath))
    end
  end
end