class Dir
- Dir
- Reference
- Object
Overview
Objects of class Dir
are directory streams representing directories in the underlying file system.
They provide a variety of ways to list directories and their contents.
The directory used in these examples contains the two regular files (config.h
and main.rb
),
the parent directory (..
), and the directory itself (.
).
See also: File
.
Included Modules
- Enumerable(String)
- Iterable(String)
Direct Known Subclasses
Defined in:
tempdir.crClass Method Summary
-
.mktmpdir(**args)
Creates a new temporary directory
-
.mktmpdir(**args, &)
Creates a new temporary directory and yield block with its path
Class Method Detail
def self.mktmpdir(**args)
#
Creates a new temporary directory
The given arguments will be passed to File.tempname
as-is.
Alias for Tempdir.new
.