Class: File

Inherits:
Object show all
Defined in:
lib/pretty_debug.rb

Overview

File

Class Method Summary collapse

Class Method Details

.expand_path_relative(f) ⇒ Object



11
# File 'lib/pretty_debug.rb', line 11

def self.expand_path_relative f; expand_path(f, caller_location.dirname) end

.relativize(f) ⇒ Object



10
# File 'lib/pretty_debug.rb', line 10

def self.relativize f; f.sub(%r{\A/}, "".freeze) end