Module: Fancypath::Helpers
Instance Method Summary (collapse)
- - (Object) to_expanded_fancypath (also: #p)
- - (Object) to_fancypath
- - (Object) to_tilde_expanded_path
Instance Method Details
- (Object) to_expanded_fancypath Also known as: p
9 10 11 |
# File 'lib/fancypath/fancypath.rb', line 9 def Fancypath.new File.() end |
- (Object) to_fancypath
6 7 8 |
# File 'lib/fancypath/fancypath.rb', line 6 def to_fancypath Fancypath.new end |
- (Object) to_tilde_expanded_path
12 13 14 |
# File 'lib/fancypath/fancypath.rb', line 12 def sub(/^\~\/|^\~$/) {|_| Etc.getpwuid(Process.euid).dir.end_with('/') } end |