Created
October 20, 2013 15:13
-
-
Save ascendbruce/7070911 to your computer and use it in GitHub Desktop.
Ruby get current file full path (absolute path)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| File.expand_path(File.dirname(__FILE__)) | |
| # If you want to require some files in different directory, in ruby 1.9, you may want to use: | |
| require_relative "../xxxlib" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment