Class: FSPath

Inherits:
Pathname
  • Object
show all
Defined in:
lib/fspath.rb

Class Method Summary collapse

Class Method Details

.~(name = nil) ⇒ Object

return current user home dir path if called without argument if called with argument return specified user home dir path



5
6
7
# File 'lib/fspath.rb', line 5

def ~(name = nil)
  new(File.expand_path("~#{name}"))
end