instance method
Pathname#opendir
() -> ::Dir
[U] () { (::Dir) -> U } -> U
opendir() { |dir| ... }
pathname_builtin.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/pathname_builtin.rb, line 1145
def opendir(&block) # :yield: dir
Dir.open(@path, &block)
end
See Dir.open.