Sha256: 2cdd62fdda4c7abd513bf7cc7f174120aaeaa6b75db236650d852ce2b91c8ac7
Contents?: true
Size: 993 Bytes
Versions: 4
Compression:
Stored size: 993 Bytes
Contents
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>escape_raw (Uri)</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> <pre><span class="ruby-comment cmt"># File lib/keystone/core_ext/uri.rb, line 3</span> <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">escape_raw</span>(<span class="ruby-identifier">st</span>) <span class="ruby-identifier">st</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([^a-zA-Z0-9_\-\.~])/</span>) { <span class="ruby-node">"%#{$1.unpack('H*')[0].scan(/../).join('%').upcase }"</span> } <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
4 entries across 4 versions & 1 rubygems