Class: Pathname

Inherits:
Object
  • Object
show all
Defined in:
lib/lydown/core_ext.rb

Class Method Summary collapse

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