Class: Pathname

Inherits:
Object show all
Defined in:
lib/a_little_less/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#realpath_safeObject



95
96
97
98
99
100
101
# File 'lib/a_little_less/core_ext.rb', line 95

def realpath_safe
    realpath
rescue Errno::ENOENT => e
    puts "Error following #{self}: #{e.message}"
    puts e.backtrace.join("\n") if e.backtrace
    nil
end