Class: File

Inherits:
Object
  • Object
show all
Defined in:
lib/extensions/file.rb

Class Method Summary collapse

Class Method Details

.native_path(path) ⇒ Object



2
3
4
5
6
# File 'lib/extensions/file.rb', line 2

def self.native_path(path)
  expanded_path = File.expand_path(path)
  expanded_path.gsub!('/', '\\') if RUBY_PLATFORM['win32']
  expanded_path
end