class Pathname

Public Instance Methods

realpath_safe() click to toggle source
# 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