Skip to content

Instantly share code, notes, and snippets.

@macedo
Created September 24, 2012 15:50
Show Gist options
  • Save macedo/3776648 to your computer and use it in GitHub Desktop.
Save macedo/3776648 to your computer and use it in GitHub Desktop.
def load_files_from(files=[])
postponed_files = []
files.each do |f|
begin
require f
rescue
postponed_files << f
end
end
load_files_from(postponed_files) unless postponed_files.empty?
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment