Skip to content

Instantly share code, notes, and snippets.

@jof
Created August 13, 2012 21:54
Show Gist options
  • Save jof/3344343 to your computer and use it in GitHub Desktop.
Save jof/3344343 to your computer and use it in GitHub Desktop.
class File
def join_from_root(*args)
# Stringify objects.
args.map! { |a| a.to_s }
return self.join(SEPARATOR, *args)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment