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