instance method
Pathname#entries
() -> ::Array[::Pathname]
entries
pathname_builtin.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/pathname_builtin.rb, line 1127
def entries() Dir.entries(@path).map {|f| self.class.new(f) } end
Return the entries (files and subdirectories) in the directory, each as a Pathname object.