Method: #try_load_file

Defined in:
lib/mysql_backup/extensions.rb

#try_load_file(path) ⇒ Object



2
3
4
5
6
7
8
9
# File 'lib/mysql_backup/extensions.rb', line 2

def try_load_file(path)
  begin
    load_relative path
    return path
  rescue LoadError => e
    return nil
  end
end