Method: Path.expand_path
- Defined in:
- lib/epitools/path.rb
.expand_path(orig_path) ⇒ Object
Same as File.expand_path, except preserves the trailing ‘/’.
1509 1510 1511 1512 1513 |
# File 'lib/epitools/path.rb', line 1509 def self.(orig_path) new_path = File. orig_path new_path << "/" if orig_path.endswith "/" new_path end |