method

new

v2_2_9 - Show latest stable - Class: Dir
new(p1, p2 = {})
public

Returns a new directory object for the named directory.

The optional enc argument specifies the encoding of the directory. If not specified, the filesystem encoding is used.