doc/rdoc/lore/classes/URI.html in facets-2.4.4 vs doc/rdoc/lore/classes/URI.html in facets-2.4.5
- old
+ new
@@ -30,16 +30,16 @@
return false;
if( elem.style.display == "block" )
{
elem.style.display = "none"
- link.innerHTML = "show source"
+ link.innerHTML = "+"
}
else
{
elem.style.display = "block"
- link.innerHTML = "hide source"
+ link.innerHTML = "-"
}
}
function openCode( url )
{
@@ -71,24 +71,22 @@
<div class="sectiontitle">Methods</div>
- <ul>
- <li><a href="#M000105">cgi_escape</a></li>
- <li><a href="#M000107">cgi_parse</a></li>
- <li><a href="#M000106">cgi_unescape</a></li>
- <li><a href="#M000109">chomp_query_string</a></li>
- <li><a href="#M000100">decode</a></li>
- <li><a href="#M000108">get_query_string</a></li>
- <li><a href="#M000103">hash_to_query</a></li>
- <li><a href="#M000104">hash_to_query_string</a></li>
- <li><a href="#M000102">query_string_to_hash</a></li>
- <li><a href="#M000101">query_to_hash</a></li>
- <li><a href="#M000110">update_query_string</a></li>
- <li><a href="#M000111">update_request_uri</a></li>
- </ul>
+ <span style="padding-right: 5px;"><a href="#M000105">cgi_escape</a></span>
+ <span style="padding-right: 5px;"><a href="#M000107">cgi_parse</a></span>
+ <span style="padding-right: 5px;"><a href="#M000106">cgi_unescape</a></span>
+ <span style="padding-right: 5px;"><a href="#M000109">chomp_query_string</a></span>
+ <span style="padding-right: 5px;"><a href="#M000100">decode</a></span>
+ <span style="padding-right: 5px;"><a href="#M000108">get_query_string</a></span>
+ <span style="padding-right: 5px;"><a href="#M000103">hash_to_query</a></span>
+ <span style="padding-right: 5px;"><a href="#M000104">hash_to_query_string</a></span>
+ <span style="padding-right: 5px;"><a href="#M000102">query_string_to_hash</a></span>
+ <span style="padding-right: 5px;"><a href="#M000101">query_to_hash</a></span>
+ <span style="padding-right: 5px;"><a href="#M000110">update_query_string</a></span>
+ <span style="padding-right: 5px;"><a href="#M000111">update_request_uri</a></span>
<div class="sectiontitle">Classes and Modules</div>
Module <a href="URI/Hash.html" class="link">URI::Hash</a><br />
@@ -106,11 +104,11 @@
<p>
TODO: How does this compare to URI.escape?
</p>
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000105_source')" id="l_M000105_source">show source</a> ]</p>
+ <p class="source-link">[ <a href="javascript:toggleSource('M000105_source')" id="l_M000105_source">+</a> ]</p>
<div id="M000105_source" class="dyn-source">
<pre>
<span class="ruby-comment cmt"># File lib/lore/facets/uri.rb, line 109</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cgi_escape</span>(<span class="ruby-identifier">string</span>)
<span class="ruby-identifier">string</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([^ a-zA-Z0-9_.-]+)/n</span>) <span class="ruby-keyword kw">do</span>
@@ -124,11 +122,11 @@
<div class="method">
<div class="title">
<a name="M000107"></a><b>cgi_parse</b>(query)
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000107_source')" id="l_M000107_source">show source</a> ]</p>
+ <p class="source-link">[ <a href="javascript:toggleSource('M000107_source')" id="l_M000107_source">+</a> ]</p>
<div id="M000107_source" class="dyn-source">
<pre>
<span class="ruby-comment cmt"># File lib/lore/facets/uri.rb, line 125</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cgi_parse</span>(<span class="ruby-identifier">query</span>)
<span class="ruby-identifier">params</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>([].<span class="ruby-identifier">freeze</span>)
@@ -151,11 +149,11 @@
<div class="method">
<div class="title">
<a name="M000106"></a><b>cgi_unescape</b>(string)
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000106_source')" id="l_M000106_source">show source</a> ]</p>
+ <p class="source-link">[ <a href="javascript:toggleSource('M000106_source')" id="l_M000106_source">+</a> ]</p>
<div id="M000106_source" class="dyn-source">
<pre>
<span class="ruby-comment cmt"># File lib/lore/facets/uri.rb, line 117</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cgi_unescape</span>(<span class="ruby-identifier">string</span>)
<span class="ruby-identifier">string</span>.<span class="ruby-identifier">tr</span>(<span class="ruby-value str">'+'</span>, <span class="ruby-value str">' '</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/((?:%[0-9a-fA-F]{2})+)/n</span>) <span class="ruby-keyword kw">do</span>
@@ -180,11 +178,11 @@
<p>
Output: the chomped uri.
</p>
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000109_source')" id="l_M000109_source">show source</a> ]</p>
+ <p class="source-link">[ <a href="javascript:toggleSource('M000109_source')" id="l_M000109_source">+</a> ]</p>
<div id="M000109_source" class="dyn-source">
<pre>
<span class="ruby-comment cmt"># File lib/lore/facets/uri.rb, line 169</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chomp_query_string</span>(<span class="ruby-identifier">uri</span>)
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">uri</span>
@@ -203,11 +201,11 @@
<p>
Decode the uri components.
</p>
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000100_source')" id="l_M000100_source">show source</a> ]</p>
+ <p class="source-link">[ <a href="javascript:toggleSource('M000100_source')" id="l_M000100_source">+</a> ]</p>
<div id="M000100_source" class="dyn-source">
<pre>
<span class="ruby-comment cmt"># File lib/lore/facets/uri.rb, line 33</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">decode</span>(<span class="ruby-identifier">uri</span>)
<span class="ruby-comment cmt"># gmosx: hmm is this needed?</span>
@@ -251,11 +249,11 @@
<p>
Output: the query string. returns nil if no query string
</p>
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000108_source')" id="l_M000108_source">show source</a> ]</p>
+ <p class="source-link">[ <a href="javascript:toggleSource('M000108_source')" id="l_M000108_source">+</a> ]</p>
<div id="M000108_source" class="dyn-source">
<pre>
<span class="ruby-comment cmt"># File lib/lore/facets/uri.rb, line 149</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_query_string</span>(<span class="ruby-identifier">uri</span>)
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">uri</span>
@@ -288,11 +286,11 @@
<div class="aka">
This method is also aliased as
<a href="URI.html#M000104">hash_to_query_string</a>
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000103_source')" id="l_M000103_source">show source</a> ]</p>
+ <p class="source-link">[ <a href="javascript:toggleSource('M000103_source')" id="l_M000103_source">+</a> ]</p>
<div id="M000103_source" class="dyn-source">
<pre>
<span class="ruby-comment cmt"># File lib/lore/facets/uri.rb, line 94</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">hash_to_query</span>(<span class="ruby-identifier">parameters</span>)
<span class="ruby-keyword kw">return</span> <span class="ruby-value str">''</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">parameters</span>
@@ -348,11 +346,11 @@
<div class="aka">
This method is also aliased as
<a href="URI.html#M000102">query_string_to_hash</a>
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000101_source')" id="l_M000101_source">show source</a> ]</p>
+ <p class="source-link">[ <a href="javascript:toggleSource('M000101_source')" id="l_M000101_source">+</a> ]</p>
<div id="M000101_source" class="dyn-source">
<pre>
<span class="ruby-comment cmt"># File lib/lore/facets/uri.rb, line 70</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">query_to_hash</span>(<span class="ruby-identifier">query_string</span>)
<span class="ruby-keyword kw">return</span> {} <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">query_string</span>
@@ -392,11 +390,11 @@
<p>
TODO: optimize
</p>
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000110_source')" id="l_M000110_source">show source</a> ]</p>
+ <p class="source-link">[ <a href="javascript:toggleSource('M000110_source')" id="l_M000110_source">+</a> ]</p>
<div id="M000110_source" class="dyn-source">
<pre>
<span class="ruby-comment cmt"># File lib/lore/facets/uri.rb, line 188</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_query_string</span>(<span class="ruby-identifier">uri</span>, <span class="ruby-identifier">parameters</span>)
<span class="ruby-identifier">query_string</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">get_query_string</span>(<span class="ruby-identifier">uri</span>)
@@ -426,10 +424,10 @@
the query string and returns a new uri. The request object is not modified.
There is always a qs string so an extra test is skipped.
</p>
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000111_source')" id="l_M000111_source">show source</a> ]</p>
+ <p class="source-link">[ <a href="javascript:toggleSource('M000111_source')" id="l_M000111_source">+</a> ]</p>
<div id="M000111_source" class="dyn-source">
<pre>
<span class="ruby-comment cmt"># File lib/lore/facets/uri.rb, line 208</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_request_uri</span>(<span class="ruby-identifier">request</span>, <span class="ruby-identifier">parameters</span>)
<span class="ruby-identifier">hash</span> = <span class="ruby-identifier">request</span>.<span class="ruby-identifier">parameters</span>.<span class="ruby-identifier">dup</span>()
\ No newline at end of file