Method: Pathname#to_ruby
- Defined in:
- lib/pik/core_ext/pathname.rb
#to_ruby ⇒ Object
9 10 11 |
# File 'lib/pik/core_ext/pathname.rb', line 9 def to_ruby @path.tr('\\','/').sub(/^(.):/){|s| s.upcase } end |
9 10 11 |
# File 'lib/pik/core_ext/pathname.rb', line 9 def to_ruby @path.tr('\\','/').sub(/^(.):/){|s| s.upcase } end |