Class: Pathname
- Inherits:
-
Object
- Object
- Pathname
- Defined in:
- lib/lydown/core_ext.rb
Class Method Summary collapse
-
.relative_pwd(path) ⇒ Object
Returns path relative to working directory.
Class Method Details
.relative_pwd(path) ⇒ Object
Returns path relative to working directory
212 213 214 |
# File 'lib/lydown/core_ext.rb', line 212 def self.relative_pwd(path) self.new(path).relative_path_from(pwd).to_s end |