Method: Path#cp
- Defined in:
- lib/path/fileutils.rb
#cp(to) ⇒ Object Also known as: copy
Copies the file to to. See FileUtils.cp.
44 45 46 47 |
# File 'lib/path/fileutils.rb', line 44 def cp(to) # TODO: remove :preserve when all implement it correctly (r31123) FileUtils.cp(@path, to, :preserve => true) end |