Class: FSPath
- Inherits:
-
Pathname
- Object
- Pathname
- FSPath
- Defined in:
- lib/fspath.rb
Class Method Summary collapse
-
.~(name = nil) ⇒ Object
return current user home dir path if called without argument if called with argument return specified user home dir path.
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.("~#{name}")) end |