instance method
Pathname#rename
(::Pathname | ::string new_name) -> 0
rename(to)
pathname_builtin.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/pathname_builtin.rb, line 947
def rename(to) File.rename(@path, to) end
See File.rename. Rename the file.