Created
March 15, 2010 21:57
-
-
Save NV/333384 to your computer and use it in GitHub Desktop.
Shortcut for File.join
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
| class String | |
| # Shortcut for File.join | |
| # Usage | |
| # '..'/'foo' -> '../foo' | |
| def /(path) | |
| File.join(self, path.to_s) | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment