Method: Pathname#to_bash
- Defined in:
- lib/pik/core_ext/pathname.rb
#to_bash ⇒ Object
13 14 15 |
# File 'lib/pik/core_ext/pathname.rb', line 13 def to_bash @path.tr('\\','/').sub(/^(.):/){|s| "/#{s[0,1].downcase}"} end |
13 14 15 |
# File 'lib/pik/core_ext/pathname.rb', line 13 def to_bash @path.tr('\\','/').sub(/^(.):/){|s| "/#{s[0,1].downcase}"} end |