Method: Pathname#to_s
- Defined in:
- lib/pik/core_ext/pathname.rb
#to_s ⇒ Object Also known as: to_windows
4 5 6 |
# File 'lib/pik/core_ext/pathname.rb', line 4 def to_s @path.tr('/','\\').sub(/^(.):/){|s| s.upcase } end |
4 5 6 |
# File 'lib/pik/core_ext/pathname.rb', line 4 def to_s @path.tr('/','\\').sub(/^(.):/){|s| s.upcase } end |