Method: Path#rename
- Defined in:
- lib/path/file.rb
#rename(to) ⇒ Object
Renames the file and returns the new Path. See File.rename.
61 62 63 64 |
# File 'lib/path/file.rb', line 61 def rename(to) File.rename(@path, to) Path.new(to) end |