Skip to content

End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Pathname#each_entry

each_entry

Iterates over the entries (files and subdirectories) in the directory, yielding a Pathname object for each entry.

See also #each_child #each_filename #dirname #each_line also in 4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0