Method: Pathname#move
- Defined in:
- lib/pleasant_path/pathname.rb
#move(destination) ⇒ Pathname
Moves the file or directory indicated by the Pathname to destination
, in the same manner as FileUtils.mv
. Returns destination
as a Pathname.
438 439 440 441 |
# File 'lib/pleasant_path/pathname.rb', line 438 def move(destination) FileUtils.mv(self, destination) destination.to_pathname end |