Method: Filepath#with_filename
- Defined in:
- lib/filepath/filepath.rb
#with_filename(new_path) ⇒ Filepath Also known as: with_basename, replace_filename, replace_basename
Replace the path filename with the supplied path.
224 225 226 227 |
# File 'lib/filepath/filepath.rb', line 224 def with_filename(new_path) dir = self.parent_dir return dir / new_path end |