Skip to content

Instantly share code, notes, and snippets.

@NV
Created March 15, 2010 21:57
Show Gist options
  • Select an option

  • Save NV/333384 to your computer and use it in GitHub Desktop.

Select an option

Save NV/333384 to your computer and use it in GitHub Desktop.
Shortcut for File.join
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