Class: File

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

Class Method Summary collapse

Class Method Details

.relpath(fn, dir) ⇒ Object



3
4
5
# File 'lib/amiba/core_ext/file.rb', line 3

def self.relpath(fn, dir)
  File.join(File.expand_path(fn).split(File::SEPARATOR) - File.expand_path(dir).split(File::SEPARATOR))
end