instance method
Pathname#open
(?::string | ::int mode, ?::int perm) -> ::File
[T] (?::string | ::int mode, ?::int perm) { (::File) -> T } -> T
open(...) { |file| ... }
pathname_builtin.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/pathname_builtin.rb, line 939
def open(...) # :yield: file
File.open(@path, ...)
end
See File.open. Opens the file for reading or writing.