Skip to content

Instantly share code, notes, and snippets.

@jamesmoriarty
Created September 18, 2012 06:45
Show Gist options
  • Save jamesmoriarty/3741657 to your computer and use it in GitHub Desktop.
Save jamesmoriarty/3741657 to your computer and use it in GitHub Desktop.
require_relative
# File lib/extensions/kernel.rb, line 38
def require_relative(path)
require File.join(File.dirname(caller[0]), path.to_str)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment