Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added a full_uri_escape because I'm tired of googling how to make rub…

…y escape colons.
  • Loading branch information...
commit fd93fc63f0e9c4befde3e1df129c9f1e8d086f06 1 parent a555500
Mat Schaffer authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 dotfiles/irbrc
View
6 dotfiles/irbrc
@@ -17,6 +17,12 @@ class Time
end
end
+class String
+ def full_uri_escape
+ URI.escape(self, Regexp.new("[^#{URI::PATTERN::UNRESERVED}]"))
+ end
+end
+
if ENV['RAILS_ENV']
def Object.method_added(method)
return super(method) unless method == :helper
Please sign in to comment.
Something went wrong with that request. Please try again.