Skip to content

Instantly share code, notes, and snippets.

@drio
Created April 22, 2010 15:53
Show Gist options
  • Save drio/375408 to your computer and use it in GitHub Desktop.
Save drio/375408 to your computer and use it in GitHub Desktop.
class String
def extra_slash!
self.replace(self[-1] == "/" ? self : "#{self}/")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment