incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1003045 [18/24] - in /incubator/deltacloud/trunk: server/ site/api-docs/ site/api-docs/CloudClient/ site/api-docs/Deltacloud/ site/api-docs/Deltacloud/BaseDriver/ site/api-docs/Deltacloud/Drivers/ site/api-docs/Deltacloud/Drivers/Azure/ si...
Date Thu, 30 Sep 2010 12:48:04 GMT
Added: incubator/deltacloud/trunk/site/api-docs/Sinatra/Rabbit/DuplicateCollectionException.html
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/site/api-docs/Sinatra/Rabbit/DuplicateCollectionException.html?rev=1003045&view=auto
==============================================================================
--- incubator/deltacloud/trunk/site/api-docs/Sinatra/Rabbit/DuplicateCollectionException.html (added)
+++ incubator/deltacloud/trunk/site/api-docs/Sinatra/Rabbit/DuplicateCollectionException.html Thu Sep 30 12:48:00 2010
@@ -0,0 +1,100 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta name="Content-Type" content="text/html; charset=utf8" />
+<title>Exception: Sinatra::Rabbit::DuplicateCollectionException</title>
+<link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
+<link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
+
+<script type="text/javascript" charset="utf-8">
+  relpath = '../..';
+  if (relpath != '') relpath += '/';
+</script>
+<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
+<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
+
+  </head>
+  <body>
+    <script type="text/javascript" charset="utf-8">
+      if (window.top.frames.main) document.body.className = 'frames';
+    </script>
+    
+    <div id="header">
+      <div id="menu">
+  
+    <a href="../../_index.html">Index (D)</a> &raquo; 
+    <span class='title'><span class='object_link'><a href="../../Sinatra.html" title="Sinatra (module)">Sinatra</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Rabbit.html" title="Sinatra::Rabbit (module)">Rabbit</a></span></span>
+     &raquo; 
+    <span class="title">DuplicateCollectionException</span>
+  
+  
+  <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
+</div>
+
+      <div id="search">
+  <a id="class_list_link" href="#">Class List</a>
+  <a id="method_list_link" href="#">Method List</a>
+  <a id ="file_list_link" href="#">File List</a>
+</div>
+
+      <div class="clear"></div>
+    </div>
+    
+    <iframe id="search_frame"></iframe>
+    
+    <div id="content"><h1>Exception: Sinatra::Rabbit::DuplicateCollectionException
+  
+  
+  
+</h1>
+
+<dl class="box">
+  
+    <dt class="r1">Inherits:</dt>
+    <dd class="r1">
+      <span class="inheritName">Exception</span>
+      
+        <ul class="fullTree">
+          <li>Object</li>
+          
+            <li class="next">Exception</li>
+          
+            <li class="next">Sinatra::Rabbit::DuplicateCollectionException</li>
+          
+        </ul>
+        <a href="#" class="inheritanceTree">show all</a>
+      
+      </dd>
+    
+  
+  
+    
+  
+    
+  
+  
+  
+    <dt class="r2 last">Defined in:</dt>
+    <dd class="r2 last">lib/sinatra/rabbit.rb</dd>
+  
+</dl>
+<div class="clear"></div>
+
+
+
+  
+
+
+  
+
+</div>
+    
+    <div id="footer">
+  Generated on Thu Sep 30 14:43:56 2010 by 
+  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
+  0.6.1 (ruby-1.8.6).
+</div>
+
+  </body>
+</html>
\ No newline at end of file

Added: incubator/deltacloud/trunk/site/api-docs/Sinatra/Rabbit/DuplicateOperationException.html
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/site/api-docs/Sinatra/Rabbit/DuplicateOperationException.html?rev=1003045&view=auto
==============================================================================
--- incubator/deltacloud/trunk/site/api-docs/Sinatra/Rabbit/DuplicateOperationException.html (added)
+++ incubator/deltacloud/trunk/site/api-docs/Sinatra/Rabbit/DuplicateOperationException.html Thu Sep 30 12:48:00 2010
@@ -0,0 +1,100 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta name="Content-Type" content="text/html; charset=utf8" />
+<title>Exception: Sinatra::Rabbit::DuplicateOperationException</title>
+<link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
+<link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
+
+<script type="text/javascript" charset="utf-8">
+  relpath = '../..';
+  if (relpath != '') relpath += '/';
+</script>
+<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
+<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
+
+  </head>
+  <body>
+    <script type="text/javascript" charset="utf-8">
+      if (window.top.frames.main) document.body.className = 'frames';
+    </script>
+    
+    <div id="header">
+      <div id="menu">
+  
+    <a href="../../_index.html">Index (D)</a> &raquo; 
+    <span class='title'><span class='object_link'><a href="../../Sinatra.html" title="Sinatra (module)">Sinatra</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Rabbit.html" title="Sinatra::Rabbit (module)">Rabbit</a></span></span>
+     &raquo; 
+    <span class="title">DuplicateOperationException</span>
+  
+  
+  <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
+</div>
+
+      <div id="search">
+  <a id="class_list_link" href="#">Class List</a>
+  <a id="method_list_link" href="#">Method List</a>
+  <a id ="file_list_link" href="#">File List</a>
+</div>
+
+      <div class="clear"></div>
+    </div>
+    
+    <iframe id="search_frame"></iframe>
+    
+    <div id="content"><h1>Exception: Sinatra::Rabbit::DuplicateOperationException
+  
+  
+  
+</h1>
+
+<dl class="box">
+  
+    <dt class="r1">Inherits:</dt>
+    <dd class="r1">
+      <span class="inheritName">Exception</span>
+      
+        <ul class="fullTree">
+          <li>Object</li>
+          
+            <li class="next">Exception</li>
+          
+            <li class="next">Sinatra::Rabbit::DuplicateOperationException</li>
+          
+        </ul>
+        <a href="#" class="inheritanceTree">show all</a>
+      
+      </dd>
+    
+  
+  
+    
+  
+    
+  
+  
+  
+    <dt class="r2 last">Defined in:</dt>
+    <dd class="r2 last">lib/sinatra/rabbit.rb</dd>
+  
+</dl>
+<div class="clear"></div>
+
+
+
+  
+
+
+  
+
+</div>
+    
+    <div id="footer">
+  Generated on Thu Sep 30 14:43:54 2010 by 
+  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
+  0.6.1 (ruby-1.8.6).
+</div>
+
+  </body>
+</html>
\ No newline at end of file

Added: incubator/deltacloud/trunk/site/api-docs/Sinatra/Rabbit/DuplicateParamException.html
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/site/api-docs/Sinatra/Rabbit/DuplicateParamException.html?rev=1003045&view=auto
==============================================================================
--- incubator/deltacloud/trunk/site/api-docs/Sinatra/Rabbit/DuplicateParamException.html (added)
+++ incubator/deltacloud/trunk/site/api-docs/Sinatra/Rabbit/DuplicateParamException.html Thu Sep 30 12:48:00 2010
@@ -0,0 +1,100 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta name="Content-Type" content="text/html; charset=utf8" />
+<title>Exception: Sinatra::Rabbit::DuplicateParamException</title>
+<link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
+<link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
+
+<script type="text/javascript" charset="utf-8">
+  relpath = '../..';
+  if (relpath != '') relpath += '/';
+</script>
+<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
+<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
+
+  </head>
+  <body>
+    <script type="text/javascript" charset="utf-8">
+      if (window.top.frames.main) document.body.className = 'frames';
+    </script>
+    
+    <div id="header">
+      <div id="menu">
+  
+    <a href="../../_index.html">Index (D)</a> &raquo; 
+    <span class='title'><span class='object_link'><a href="../../Sinatra.html" title="Sinatra (module)">Sinatra</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Rabbit.html" title="Sinatra::Rabbit (module)">Rabbit</a></span></span>
+     &raquo; 
+    <span class="title">DuplicateParamException</span>
+  
+  
+  <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
+</div>
+
+      <div id="search">
+  <a id="class_list_link" href="#">Class List</a>
+  <a id="method_list_link" href="#">Method List</a>
+  <a id ="file_list_link" href="#">File List</a>
+</div>
+
+      <div class="clear"></div>
+    </div>
+    
+    <iframe id="search_frame"></iframe>
+    
+    <div id="content"><h1>Exception: Sinatra::Rabbit::DuplicateParamException
+  
+  
+  
+</h1>
+
+<dl class="box">
+  
+    <dt class="r1">Inherits:</dt>
+    <dd class="r1">
+      <span class="inheritName">Exception</span>
+      
+        <ul class="fullTree">
+          <li>Object</li>
+          
+            <li class="next">Exception</li>
+          
+            <li class="next">Sinatra::Rabbit::DuplicateParamException</li>
+          
+        </ul>
+        <a href="#" class="inheritanceTree">show all</a>
+      
+      </dd>
+    
+  
+  
+    
+  
+    
+  
+  
+  
+    <dt class="r2 last">Defined in:</dt>
+    <dd class="r2 last">lib/sinatra/rabbit.rb</dd>
+  
+</dl>
+<div class="clear"></div>
+
+
+
+  
+
+
+  
+
+</div>
+    
+    <div id="footer">
+  Generated on Thu Sep 30 14:43:53 2010 by 
+  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
+  0.6.1 (ruby-1.8.6).
+</div>
+
+  </body>
+</html>
\ No newline at end of file

Added: incubator/deltacloud/trunk/site/api-docs/Sinatra/Rabbit/Operation.html
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/site/api-docs/Sinatra/Rabbit/Operation.html?rev=1003045&view=auto
==============================================================================
--- incubator/deltacloud/trunk/site/api-docs/Sinatra/Rabbit/Operation.html (added)
+++ incubator/deltacloud/trunk/site/api-docs/Sinatra/Rabbit/Operation.html Thu Sep 30 12:48:00 2010
@@ -0,0 +1,817 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta name="Content-Type" content="text/html; charset=utf8" />
+<title>Class: Sinatra::Rabbit::Operation</title>
+<link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
+<link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
+
+<script type="text/javascript" charset="utf-8">
+  relpath = '../..';
+  if (relpath != '') relpath += '/';
+</script>
+<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
+<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
+
+  </head>
+  <body>
+    <script type="text/javascript" charset="utf-8">
+      if (window.top.frames.main) document.body.className = 'frames';
+    </script>
+    
+    <div id="header">
+      <div id="menu">
+  
+    <a href="../../_index.html">Index (O)</a> &raquo; 
+    <span class='title'><span class='object_link'><a href="../../Sinatra.html" title="Sinatra (module)">Sinatra</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Rabbit.html" title="Sinatra::Rabbit (module)">Rabbit</a></span></span>
+     &raquo; 
+    <span class="title">Operation</span>
+  
+  
+  <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
+</div>
+
+      <div id="search">
+  <a id="class_list_link" href="#">Class List</a>
+  <a id="method_list_link" href="#">Method List</a>
+  <a id ="file_list_link" href="#">File List</a>
+</div>
+
+      <div class="clear"></div>
+    </div>
+    
+    <iframe id="search_frame"></iframe>
+    
+    <div id="content"><h1>Class: Sinatra::Rabbit::Operation
+  
+  
+  
+</h1>
+
+<dl class="box">
+  
+    <dt class="r1">Inherits:</dt>
+    <dd class="r1">
+      <span class="inheritName">Object</span>
+      
+        <ul class="fullTree">
+          <li>Object</li>
+          
+            <li class="next">Sinatra::Rabbit::Operation</li>
+          
+        </ul>
+        <a href="#" class="inheritanceTree">show all</a>
+      
+      </dd>
+    
+  
+  
+    
+  
+    
+      <dt class="r2">Includes:</dt>
+      <dd class="r2"><span class='object_link'><a href="../../Deltacloud/Validation.html" title="Deltacloud::Validation (module)">Deltacloud::Validation</a></span></dd>
+      
+    
+  
+  
+  
+    <dt class="r1 last">Defined in:</dt>
+    <dd class="r1 last">lib/sinatra/rabbit.rb</dd>
+  
+</dl>
+<div class="clear"></div>
+
+
+  <h2>Constant Summary</h2>
+  
+    <dl class="constants">
+      
+        <dt id="STANDARD-constant" class="">STANDARD =
+          
+        </dt>
+        <dd><pre class="code"><span class='lbrace token'>{</span>
+  <span class='symbol val'>:index</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lbrace token'>{</span> <span class='symbol val'>:method</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='symbol val'>:get</span><span class='comma token'>,</span> <span class='symbol val'>:member</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='false false kw'>false</span> <span class='rbrace token'>}</span><span class='comma token'>,</span>
+  <span class='symbol val'>:show</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span>  <span class='lbrace token'>{</span> <span class='symbol val'>:method</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='symbol val'>:get</span><span class='comma token'>,</span> <span class='symbol val'>:member</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='true true kw'>true</span> <span class='rbrace token'>}</span><span class='comma token'>,</span>
+  <span class='symbol val'>:create</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lbrace token'>{</span> <span class='symbol val'>:method</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='symbol val'>:post</span><span class='comma token'>,</span> <span class='symbol val'>:member</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='false false kw'>false</span> <span class='rbrace token'>}</span><span class='comma token'>,</span>
+  <span class='symbol val'>:update</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lbrace token'>{</span> <span class='symbol val'>:method</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='symbol val'>:put</span><span class='comma token'>,</span> <span class='symbol val'>:member</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='true true kw'>true</span> <span class='rbrace token'>}</span><span class='comma token'>,</span>
+  <span class='symbol val'>:destroy</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lbrace token'>{</span> <span class='symbol val'>:method</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='symbol val'>:delete</span><span class='comma token'>,</span> <span class='symbol val'>:member</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='true true kw'>true</span> <span class='rbrace token'>}</span>
+<span class='rbrace token'>}</span>
+</pre></dd>
+      
+    </dl>
+  
+
+
+  
+  
+  
+  
+  <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
+  <ul class="summary">
+    
+      <li class="public ">
+  <span class="summary_signature">
+    
+      <a href="#method-instance_method" title="#method (instance method)">- (Object) <strong>method</strong> </a>
+    
+
+    
+  </span>
+  
+  
+    <span class="note title readonly">readonly</span>
+    
+  
+  
+  
+  
+  
+
+  
+    <span class="summary_desc"><div class='inline'><p>
+Returns the value of attribute method.
+</p>
+</div></span>
+  
+</li>
+
+    
+      <li class="public ">
+  <span class="summary_signature">
+    
+      <a href="#name-instance_method" title="#name (instance method)">- (Object) <strong>name</strong> </a>
+    
+
+    
+  </span>
+  
+  
+    <span class="note title readonly">readonly</span>
+    
+  
+  
+  
+  
+  
+
+  
+    <span class="summary_desc"><div class='inline'><p>
+Returns the value of attribute name.
+</p>
+</div></span>
+  
+</li>
+
+    
+  </ul>
+
+
+  
+    <h2>
+      Instance Method Summary
+      <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
+    </h2>
+
+    <ul class="summary">
+      
+        <li class="public ">
+  <span class="summary_signature">
+    
+      <a href="#control-instance_method" title="#control (instance method)">- (Object) <strong>control</strong>(&amp;block) </a>
+    
+
+    
+  </span>
+  
+  
+  
+  
+  
+  
+
+  
+    <span class="summary_desc"><div class='inline'></div></span>
+  
+</li>
+
+      
+        <li class="public ">
+  <span class="summary_signature">
+    
+      <a href="#description-instance_method" title="#description (instance method)">- (Object) <strong>description</strong>(text = &quot;&quot;) </a>
+    
+
+    
+  </span>
+  
+  
+  
+  
+  
+  
+
+  
+    <span class="summary_desc"><div class='inline'></div></span>
+  
+</li>
+
+      
+        <li class="public ">
+  <span class="summary_signature">
+    
+      <a href="#generate-instance_method" title="#generate (instance method)">- (Object) <strong>generate</strong> </a>
+    
+
+    
+  </span>
+  
+  
+  
+  
+  
+  
+
+  
+    <span class="summary_desc"><div class='inline'></div></span>
+  
+</li>
+
+      
+        <li class="public ">
+  <span class="summary_signature">
+    
+      <a href="#generate_documentation-instance_method" title="#generate_documentation (instance method)">- (Object) <strong>generate_documentation</strong> </a>
+    
+
+    
+  </span>
+  
+  
+  
+  
+  
+  
+
+  
+    <span class="summary_desc"><div class='inline'></div></span>
+  
+</li>
+
+      
+        <li class="public ">
+  <span class="summary_signature">
+    
+      <a href="#initialize-instance_method" title="#initialize (instance method)">- (Operation) <strong>initialize</strong>(coll, name, opts, &amp;block) </a>
+    
+
+    
+  </span>
+  
+    <span class="note title constructor">constructor</span>
+  
+  
+  
+  
+  
+  
+
+  
+    <span class="summary_desc"><div class='inline'><p>
+A new instance of Operation.
+</p>
+</div></span>
+  
+</li>
+
+      
+        <li class="public ">
+  <span class="summary_signature">
+    
+      <a href="#path-instance_method" title="#path (instance method)">- (Object) <strong>path</strong>(args = {}) </a>
+    
+
+    
+  </span>
+  
+  
+  
+  
+  
+  
+
+  
+    <span class="summary_desc"><div class='inline'></div></span>
+  
+</li>
+
+      
+        <li class="public ">
+  <span class="summary_signature">
+    
+      <a href="#prefix-instance_method" title="#prefix (instance method)">- (Object) <strong>prefix</strong> </a>
+    
+
+    
+  </span>
+  
+  
+  
+  
+  
+  
+
+  
+    <span class="summary_desc"><div class='inline'></div></span>
+  
+</li>
+
+      
+        <li class="public ">
+  <span class="summary_signature">
+    
+      <a href="#standard%3F-instance_method" title="#standard? (instance method)">- (Boolean) <strong>standard?</strong> </a>
+    
+
+    
+  </span>
+  
+  
+  
+  
+  
+  
+
+  
+    <span class="summary_desc"><div class='inline'></div></span>
+  
+</li>
+
+      
+    </ul>
+  
+
+
+  
+  
+  
+  
+  
+  
+  
+  <h3 class="inherited">Methods included from <span class='object_link'><a href="../../Deltacloud/Validation.html" title="Deltacloud::Validation (module)">Deltacloud::Validation</a></span></h3>
+  <p class="inherited"><span class='object_link'><a href="../../Deltacloud/Validation.html#add_params-instance_method" title="Deltacloud::Validation#add_params (method)">#add_params</a></span>, <span class='object_link'><a href="../../Deltacloud/Validation.html#each_param-instance_method" title="Deltacloud::Validation#each_param (method)">#each_param</a></span>, <span class='object_link'><a href="../../Deltacloud/Validation.html#param-instance_method" title="Deltacloud::Validation#param (method)">#param</a></span>, <span class='object_link'><a href="../../Deltacloud/Validation.html#params-instance_method" title="Deltacloud::Validation#params (method)">#params</a></span>, <span class='object_link'><a href="../../Deltacloud/Validation.html#validate-instance_method" title="Deltacloud::Validation#validate (method)">#validate</a></span></p>
+<div id="constructor_details" class="method_details_list">
+  <h2>Constructor Details</h2>
+  
+    <div class="method_details first">
+  <p class="signature first" id="initialize-instance_method">
+  
+    - (<tt><span class='object_link'><a href="" title="Sinatra::Rabbit::Operation (class)">Operation</a></span></tt>) <strong>initialize</strong>(coll, name, opts, &amp;block) 
+  
+
+  
+</p><div class="docstring">
+  <div class="discussion">
+    <p>
+A new instance of Operation
+</p>
+
+
+  </div>
+</div>
+<div class="tags">
+  
+</div><table class="source_code">
+  <tr>
+    <td>
+      <pre class="lines">
+
+
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36</pre>
+    </td>
+    <td>
+      <pre class="code"><span class="info file"># File 'lib/sinatra/rabbit.rb', line 26</span>
+
+<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='coll identifier id'>coll</span><span class='comma token'>,</span> <span class='name identifier id'>name</span><span class='comma token'>,</span> <span class='opts identifier id'>opts</span><span class='comma token'>,</span> <span class='bitand op'>&amp;</span><span class='block identifier id'>block</span><span class='rparen token'>)</span>
+  <span class='@name ivar id'>@name</span> <span class='assign token'>=</span> <span class='name identifier id'>name</span><span class='dot token'>.</span><span class='to_sym identifier id'>to_sym</span>
+  <span class='opts identifier id'>opts</span> <span class='assign token'>=</span> <span class='STANDARD constant id'>STANDARD</span><span class='lbrack token'>[</span><span class='@name ivar id'>@name</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='merge identifier id'>merge</span><span class='lparen token'>(</span><span class='opts identifier id'>opts</span><span class='rparen token'>)</span> <span class='if if_mod kw'>if</span> <span class='standard? fid id'>standard?</span>
+  <span class='@collection ivar id'>@collection</span> <span class='assign token'>=</span> <span class='coll identifier id'>coll</span>
+  <span class='raise identifier id'>raise</span> <span class='dstring node'>&quot;No method for operation #{name}&quot;</span> <span class='unless unless_mod kw'>unless</span> <span class='opts identifier id'>opts</span><span class='lbrack token'>[</span><span class='symbol val'>:method</span><span class='rbrack token'>]</span>
+  <span class='@method ivar id'>@method</span> <span class='assign token'>=</span> <span class='opts identifier id'>opts</span><span class='lbrack token'>[</span><span class='symbol val'>:method</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='to_sym identifier id'>to_sym</span>
+  <span class='@member ivar id'>@member</span> <span class='assign token'>=</span> <span class='opts identifier id'>opts</span><span class='lbrack token'>[</span><span class='symbol val'>:member</span><span class='rbrack token'>]</span>
+  <span class='@description ivar id'>@description</span> <span class='assign token'>=</span> <span class='string val'>&quot;&quot;</span>
+  <span class='instance_eval identifier id'>instance_eval</span><span class='lparen token'>(</span><span class='bitand op'>&amp;</span><span class='block identifier id'>block</span><span class='rparen token'>)</span> <span class='if if_mod kw'>if</span> <span class='block_given? fid id'>block_given?</span>
+  <span class='generate_documentation identifier id'>generate_documentation</span>
+<span class='end end kw'>end</span>
+</pre>
+    </td>
+  </tr>
+</table>
+</div>
+  
+</div>
+
+  <div id="instance_attr_details" class="attr_details">
+    <h2>Instance Attribute Details</h2>
+    
+      
+      <span id=""></span>
+      <span id="method-instance_method"></span>
+      <div class="method_details first">
+  <p class="signature first" id="method-instance_method">
+  
+    - (<tt>Object</tt>) <strong>method</strong>  <span class="extras">(readonly)</span>
+  
+
+  
+</p><div class="docstring">
+  <div class="discussion">
+    <p>
+Returns the value of attribute method
+</p>
+
+
+  </div>
+</div>
+<div class="tags">
+  
+</div><table class="source_code">
+  <tr>
+    <td>
+      <pre class="lines">
+
+
+14
+15
+16</pre>
+    </td>
+    <td>
+      <pre class="code"><span class="info file"># File 'lib/sinatra/rabbit.rb', line 14</span>
+
+<span class='def def kw'>def</span> <span class='method identifier id'>method</span>
+  <span class='@method ivar id'>@method</span>
+<span class='end end kw'>end</span>
+</pre>
+    </td>
+  </tr>
+</table>
+</div>
+    
+      
+      <span id=""></span>
+      <span id="name-instance_method"></span>
+      <div class="method_details ">
+  <p class="signature " id="name-instance_method">
+  
+    - (<tt>Object</tt>) <strong>name</strong>  <span class="extras">(readonly)</span>
+  
+
+  
+</p><div class="docstring">
+  <div class="discussion">
+    <p>
+Returns the value of attribute name
+</p>
+
+
+  </div>
+</div>
+<div class="tags">
+  
+</div><table class="source_code">
+  <tr>
+    <td>
+      <pre class="lines">
+
+
+14
+15
+16</pre>
+    </td>
+    <td>
+      <pre class="code"><span class="info file"># File 'lib/sinatra/rabbit.rb', line 14</span>
+
+<span class='def def kw'>def</span> <span class='name identifier id'>name</span>
+  <span class='@name ivar id'>@name</span>
+<span class='end end kw'>end</span>
+</pre>
+    </td>
+  </tr>
+</table>
+</div>
+    
+  </div>
+
+
+  <div id="instance_method_details" class="method_details_list">
+    <h2>Instance Method Details</h2>
+    
+    
+      <div class="method_details first">
+  <p class="signature first" id="control-instance_method">
+  
+    - (<tt>Object</tt>) <strong>control</strong>(&amp;block) 
+  
+
+  
+</p><table class="source_code">
+  <tr>
+    <td>
+      <pre class="lines">
+
+
+58
+59
+60
+61
+62
+63
+64</pre>
+    </td>
+    <td>
+      <pre class="code"><span class="info file"># File 'lib/sinatra/rabbit.rb', line 58</span>
+
+<span class='def def kw'>def</span> <span class='control identifier id'>control</span><span class='lparen token'>(</span><span class='bitand op'>&amp;</span><span class='block identifier id'>block</span><span class='rparen token'>)</span>
+  <span class='op identifier id'>op</span> <span class='assign token'>=</span> <span class='self self kw'>self</span>
+  <span class='@control ivar id'>@control</span> <span class='assign token'>=</span> <span class='Proc constant id'>Proc</span><span class='dot token'>.</span><span class='new identifier id'>new</span> <span class='do do kw'>do</span>
+    <span class='op identifier id'>op</span><span class='dot token'>.</span><span class='validate identifier id'>validate</span><span class='lparen token'>(</span><span class='params identifier id'>params</span><span class='rparen token'>)</span>
+    <span class='instance_eval identifier id'>instance_eval</span><span class='lparen token'>(</span><span class='bitand op'>&amp;</span><span class='block identifier id'>block</span><span class='rparen token'>)</span>
+  <span class='end end kw'>end</span>
+<span class='end end kw'>end</span>
+</pre>
+    </td>
+  </tr>
+</table>
+</div>
+    
+      <div class="method_details ">
+  <p class="signature " id="description-instance_method">
+  
+    - (<tt>Object</tt>) <strong>description</strong>(text = &quot;&quot;) 
+  
+
+  
+</p><table class="source_code">
+  <tr>
+    <td>
+      <pre class="lines">
+
+
+42
+43
+44
+45</pre>
+    </td>
+    <td>
+      <pre class="code"><span class="info file"># File 'lib/sinatra/rabbit.rb', line 42</span>
+
+<span class='def def kw'>def</span> <span class='description identifier id'>description</span><span class='lparen token'>(</span><span class='text identifier id'>text</span><span class='assign token'>=</span><span class='string val'>&quot;&quot;</span><span class='rparen token'>)</span>
+  <span class='return return kw'>return</span> <span class='@description ivar id'>@description</span> <span class='if if_mod kw'>if</span> <span class='text identifier id'>text</span><span class='dot token'>.</span><span class='blank? fid id'>blank?</span>
+  <span class='@description ivar id'>@description</span> <span class='assign token'>=</span> <span class='text identifier id'>text</span>
+<span class='end end kw'>end</span>
+</pre>
+    </td>
+  </tr>
+</table>
+</div>
+    
+      <div class="method_details ">
+  <p class="signature " id="generate-instance_method">
+  
+    - (<tt>Object</tt>) <strong>generate</strong> 
+  
+
+  
+</p><table class="source_code">
+  <tr>
+    <td>
+      <pre class="lines">
+
+
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94</pre>
+    </td>
+    <td>
+      <pre class="code"><span class="info file"># File 'lib/sinatra/rabbit.rb', line 84</span>
+
+<span class='def def kw'>def</span> <span class='generate identifier id'>generate</span>
+  <span class='colon3 op'>::</span><span class='Sinatra constant id'>Sinatra</span><span class='colon2 op'>::</span><span class='Application constant id'>Application</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='@method ivar id'>@method</span><span class='comma token'>,</span> <span class='path identifier id'>path</span><span class='comma token'>,</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='comma token'>,</span> <span class='bitand op'>&amp;</span><span class='@control ivar id'>@control</span><span class='rparen token'>)</span>
+  <span class='comment val'># Set up some Rails-like URL helpers</span>
+  <span class='if if kw'>if</span> <span class='name identifier id'>name</span> <span class='eq op'>==</span> <span class='symbol val'>:index</span>
+    <span class='gen_route identifier id'>gen_route</span> <span class='dstring node'>&quot;#{@collection.name}_url&quot;</span>
+  <span class='elsif elsif kw'>elsif</span> <span class='name identifier id'>name</span> <span class='eq op'>==</span> <span class='symbol val'>:show</span>
+    <span class='gen_route identifier id'>gen_route</span> <span class='dstring node'>&quot;#{@collection.name.to_s.singularize}_url&quot;</span>
+  <span class='else else kw'>else</span>
+    <span class='gen_route identifier id'>gen_route</span> <span class='dstring node'>&quot;#{name}_#{@collection.name.to_s.singularize}_url&quot;</span>
+  <span class='end end kw'>end</span>
+<span class='end end kw'>end</span>
+</pre>
+    </td>
+  </tr>
+</table>
+</div>
+    
+      <div class="method_details ">
+  <p class="signature " id="generate_documentation-instance_method">
+  
+    - (<tt>Object</tt>) <strong>generate_documentation</strong> 
+  
+
+  
+</p><table class="source_code">
+  <tr>
+    <td>
+      <pre class="lines">
+
+
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56</pre>
+    </td>
+    <td>
+      <pre class="code"><span class="info file"># File 'lib/sinatra/rabbit.rb', line 47</span>
+
+<span class='def def kw'>def</span> <span class='generate_documentation identifier id'>generate_documentation</span>
+  <span class='coll identifier id'>coll</span><span class='comma token'>,</span> <span class='oper identifier id'>oper</span> <span class='assign token'>=</span> <span class='@collection ivar id'>@collection</span><span class='comma token'>,</span> <span class='self self kw'>self</span>
+  <span class='colon3 op'>::</span><span class='Sinatra constant id'>Sinatra</span><span class='colon2 op'>::</span><span class='Application constant id'>Application</span><span class='dot token'>.</span><span class='get identifier id'>get</span><span class='lparen token'>(</span><span class='dstring node'>&quot;/api/docs/#{@collection.name}/#{@name}&quot;</span><span class='rparen token'>)</span> <span class='do do kw'>do</span>
+    <span class='@collection ivar id'>@collection</span><span class='comma token'>,</span> <span class='@operation ivar id'>@operation</span> <span class='assign token'>=</span> <span class='coll identifier id'>coll</span><span class='comma token'>,</span> <span class='oper identifier id'>oper</span>
+    <span class='respond_to identifier id'>respond_to</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='format identifier id'>format</span><span class='bitor op'>|</span>
+      <span class='format identifier id'>format</span><span class='dot token'>.</span><span class='html identifier id'>html</span> <span class='lbrace token'>{</span> <span class='haml identifier id'>haml</span> <span class='symbol val'>:'docs/operation'</span> <span class='rbrace token'>}</span>
+      <span class='format identifier id'>format</span><span class='dot token'>.</span><span class='xml identifier id'>xml</span> <span class='lbrace token'>{</span> <span class='haml identifier id'>haml</span> <span class='symbol val'>:'docs/operation'</span> <span class='rbrace token'>}</span>
+    <span class='end end kw'>end</span>
+  <span class='end end kw'>end</span>
+<span class='end end kw'>end</span>
+</pre>
+    </td>
+  </tr>
+</table>
+</div>
+    
+      <div class="method_details ">
+  <p class="signature " id="path-instance_method">
+  
+    - (<tt>Object</tt>) <strong>path</strong>(args = {}) 
+  
+
+  
+</p><table class="source_code">
+  <tr>
+    <td>
+      <pre class="lines">
+
+
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82</pre>
+    </td>
+    <td>
+      <pre class="code"><span class="info file"># File 'lib/sinatra/rabbit.rb', line 71</span>
+
+<span class='def def kw'>def</span> <span class='path identifier id'>path</span><span class='lparen token'>(</span><span class='args identifier id'>args</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
+  <span class='l_prefix identifier id'>l_prefix</span> <span class='assign token'>=</span> <span class='args identifier id'>args</span><span class='lbrack token'>[</span><span class='symbol val'>:prefix</span><span class='rbrack token'>]</span> <span class='question op'>?</span> <span class='args identifier id'>args</span><span class='lbrack token'>[</span><span class='symbol val'>:prefix</span><span class='rbrack token'>]</span> <span class='colon op'>:</span> <span class='prefix identifier id'>prefix</span>
+  <span class='if if kw'>if</span> <span class='@member ivar id'>@member</span>
+    <span class='if if kw'>if</span> <span class='standard? fid id'>standard?</span>
+      <span class='dstring node'>&quot;#{l_prefix}/#{@collection.name}/:id&quot;</span>
+    <span class='else else kw'>else</span>
+      <span class='dstring node'>&quot;#{l_prefix}/#{@collection.name}/:id/#{name}&quot;</span>
+    <span class='end end kw'>end</span>
+  <span class='else else kw'>else</span>
+    <span class='dstring node'>&quot;#{l_prefix}/#{@collection.name}&quot;</span>
+  <span class='end end kw'>end</span>
+<span class='end end kw'>end</span>
+</pre>
+    </td>
+  </tr>
+</table>
+</div>
+    
+      <div class="method_details ">
+  <p class="signature " id="prefix-instance_method">
+  
+    - (<tt>Object</tt>) <strong>prefix</strong> 
+  
+
+  
+</p><table class="source_code">
+  <tr>
+    <td>
+      <pre class="lines">
+
+
+66
+67
+68
+69</pre>
+    </td>
+    <td>
+      <pre class="code"><span class="info file"># File 'lib/sinatra/rabbit.rb', line 66</span>
+
+<span class='def def kw'>def</span> <span class='prefix identifier id'>prefix</span>
+  <span class='comment val'># FIXME: Make the /api prefix configurable</span>
+  <span class='string val'>&quot;/api&quot;</span>
+<span class='end end kw'>end</span>
+</pre>
+    </td>
+  </tr>
+</table>
+</div>
+    
+      <div class="method_details ">
+  <p class="signature " id="standard?-instance_method">
+  
+    - (<tt>Boolean</tt>) <strong>standard?</strong> 
+  
+
+  
+</p><div class="docstring">
+  <div class="discussion">
+    
+
+  </div>
+</div>
+<div class="tags">
+  <h3>Returns:</h3>
+<ul class="return">
+  
+    <li>
+      
+        <span class='type'>(<tt>Boolean</tt>)</span>
+      
+      
+      
+      
+    </li>
+  
+</ul>
+
+</div><table class="source_code">
+  <tr>
+    <td>
+      <pre class="lines">
+
+
+38
+39
+40</pre>
+    </td>
+    <td>
+      <pre class="code"><span class="info file"># File 'lib/sinatra/rabbit.rb', line 38</span>
+
+<span class='def def kw'>def</span> <span class='standard? fid id'>standard?</span>
+  <span class='STANDARD constant id'>STANDARD</span><span class='dot token'>.</span><span class='keys identifier id'>keys</span><span class='dot token'>.</span><span class='include? fid id'>include?</span><span class='lparen token'>(</span><span class='name identifier id'>name</span><span class='rparen token'>)</span>
+<span class='end end kw'>end</span>
+</pre>
+    </td>
+  </tr>
+</table>
+</div>
+    
+  </div>
+
+</div>
+    
+    <div id="footer">
+  Generated on Thu Sep 30 14:44:01 2010 by 
+  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
+  0.6.1 (ruby-1.8.6).
+</div>
+
+  </body>
+</html>
\ No newline at end of file

Added: incubator/deltacloud/trunk/site/api-docs/Sinatra/RabbitHelper.html
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/site/api-docs/Sinatra/RabbitHelper.html?rev=1003045&view=auto
==============================================================================
--- incubator/deltacloud/trunk/site/api-docs/Sinatra/RabbitHelper.html (added)
+++ incubator/deltacloud/trunk/site/api-docs/Sinatra/RabbitHelper.html Thu Sep 30 12:48:00 2010
@@ -0,0 +1,206 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta name="Content-Type" content="text/html; charset=utf8" />
+<title>Module: Sinatra::RabbitHelper</title>
+<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
+<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
+
+<script type="text/javascript" charset="utf-8">
+  relpath = '..';
+  if (relpath != '') relpath += '/';
+</script>
+<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
+<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
+
+  </head>
+  <body>
+    <script type="text/javascript" charset="utf-8">
+      if (window.top.frames.main) document.body.className = 'frames';
+    </script>
+    
+    <div id="header">
+      <div id="menu">
+  
+    <a href="../_index.html">Index (R)</a> &raquo; 
+    <span class='title'><span class='object_link'><a href="../Sinatra.html" title="Sinatra (module)">Sinatra</a></span></span>
+     &raquo; 
+    <span class="title">RabbitHelper</span>
+  
+  
+  <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
+</div>
+
+      <div id="search">
+  <a id="class_list_link" href="#">Class List</a>
+  <a id="method_list_link" href="#">Method List</a>
+  <a id ="file_list_link" href="#">File List</a>
+</div>
+
+      <div class="clear"></div>
+    </div>
+    
+    <iframe id="search_frame"></iframe>
+    
+    <div id="content"><h1>Module: Sinatra::RabbitHelper
+  
+  
+  
+</h1>
+
+<dl class="box">
+  
+  
+    
+  
+    
+  
+  
+  
+    <dt class="r1 last">Defined in:</dt>
+    <dd class="r1 last">lib/sinatra/rabbit.rb</dd>
+  
+</dl>
+<div class="clear"></div>
+
+
+
+
+  
+    <h2>
+      Instance Method Summary
+      <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
+    </h2>
+
+    <ul class="summary">
+      
+        <li class="public ">
+  <span class="summary_signature">
+    
+      <a href="#entry_points-instance_method" title="#entry_points (instance method)">- (Object) <strong>entry_points</strong> </a>
+    
+
+    
+  </span>
+  
+  
+  
+  
+  
+  
+
+  
+    <span class="summary_desc"><div class='inline'></div></span>
+  
+</li>
+
+      
+        <li class="public ">
+  <span class="summary_signature">
+    
+      <a href="#query_url-instance_method" title="#query_url (instance method)">- (Object) <strong>query_url</strong>(url, params) </a>
+    
+
+    
+  </span>
+  
+  
+  
+  
+  
+  
+
+  
+    <span class="summary_desc"><div class='inline'></div></span>
+  
+</li>
+
+      
+    </ul>
+  
+
+
+
+  <div id="instance_method_details" class="method_details_list">
+    <h2>Instance Method Details</h2>
+    
+    
+      <div class="method_details first">
+  <p class="signature first" id="entry_points-instance_method">
+  
+    - (<tt>Object</tt>) <strong>entry_points</strong> 
+  
+
+  
+</p><table class="source_code">
+  <tr>
+    <td>
+      <pre class="lines">
+
+
+228
+229
+230
+231
+232
+233</pre>
+    </td>
+    <td>
+      <pre class="code"><span class="info file"># File 'lib/sinatra/rabbit.rb', line 228</span>
+
+<span class='def def kw'>def</span> <span class='entry_points identifier id'>entry_points</span>
+  <span class='collections identifier id'>collections</span><span class='dot token'>.</span><span class='values identifier id'>values</span><span class='dot token'>.</span><span class='inject identifier id'>inject</span><span class='lparen token'>(</span><span class='lbrack token'>[</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='m identifier id'>m</span><span class='comma token'>,</span> <span class='coll identifier id'>coll</span><span class='bitor op'>|</span>
+    <span class='url identifier id'>url</span> <span class='assign token'>=</span> <span class='url_for identifier id'>url_for</span> <span class='coll identifier id'>coll</span><span class='dot token'>.</span><span class='operations identifier id'>operations</span><span class='lbrack token'>[</span><span class='symbol val'>:index</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='path identifier id'>path</span><span class='comma token'>,</span> <span class='symbol val'>:full</span>
+    <span class='m identifier id'>m</span> <span class='lshft op'>&lt;&lt;</span> <span class='lbrack token'>[</span> <span class='coll identifier id'>coll</span><span class='dot token'>.</span><span class='name identifier id'>name</span><span class='comma token'>,</span> <span class='url identifier id'>url</span> <span class='rbrack token'>]</span>
+  <span class='end end kw'>end</span>
+<span class='end end kw'>end</span>
+</pre>
+    </td>
+  </tr>
+</table>
+</div>
+    
+      <div class="method_details ">
+  <p class="signature " id="query_url-instance_method">
+  
+    - (<tt>Object</tt>) <strong>query_url</strong>(url, params) 
+  
+
+  
+</p><table class="source_code">
+  <tr>
+    <td>
+      <pre class="lines">
+
+
+223
+224
+225
+226</pre>
+    </td>
+    <td>
+      <pre class="code"><span class="info file"># File 'lib/sinatra/rabbit.rb', line 223</span>
+
+<span class='def def kw'>def</span> <span class='query_url identifier id'>query_url</span><span class='lparen token'>(</span><span class='url identifier id'>url</span><span class='comma token'>,</span> <span class='params identifier id'>params</span><span class='rparen token'>)</span>
+  <span class='return return kw'>return</span> <span class='url identifier id'>url</span> <span class='if if_mod kw'>if</span> <span class='params identifier id'>params</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span> <span class='orop op'>||</span> <span class='params identifier id'>params</span><span class='dot token'>.</span><span class='empty? fid id'>empty?</span>
+  <span class='url identifier id'>url</span> <span class='plus op'>+</span> <span class='dstring node'>&quot;?#{URI.escape(params.collect{|k,v| &quot;#{k}=#{v}&quot;}.join('&amp;'))}&quot;</span>
+<span class='end end kw'>end</span>
+</pre>
+    </td>
+  </tr>
+</table>
+</div>
+    
+  </div>
+
+</div>
+    
+    <div id="footer">
+  Generated on Thu Sep 30 14:43:56 2010 by 
+  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
+  0.6.1 (ruby-1.8.6).
+</div>
+
+  </body>
+</html>
\ No newline at end of file

Added: incubator/deltacloud/trunk/site/api-docs/Sinatra/RespondTo.html
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/site/api-docs/Sinatra/RespondTo.html?rev=1003045&view=auto
==============================================================================
--- incubator/deltacloud/trunk/site/api-docs/Sinatra/RespondTo.html (added)
+++ incubator/deltacloud/trunk/site/api-docs/Sinatra/RespondTo.html Thu Sep 30 12:48:00 2010
@@ -0,0 +1,524 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta name="Content-Type" content="text/html; charset=utf8" />
+<title>Module: Sinatra::RespondTo</title>
+<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
+<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
+
+<script type="text/javascript" charset="utf-8">
+  relpath = '..';
+  if (relpath != '') relpath += '/';
+</script>
+<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
+<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
+
+  </head>
+  <body>
+    <script type="text/javascript" charset="utf-8">
+      if (window.top.frames.main) document.body.className = 'frames';
+    </script>
+    
+    <div id="header">
+      <div id="menu">
+  
+    <a href="../_index.html">Index (R)</a> &raquo; 
+    <span class='title'><span class='object_link'><a href="../Sinatra.html" title="Sinatra (module)">Sinatra</a></span></span>
+     &raquo; 
+    <span class="title">RespondTo</span>
+  
+  
+  <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
+</div>
+
+      <div id="search">
+  <a id="class_list_link" href="#">Class List</a>
+  <a id="method_list_link" href="#">Method List</a>
+  <a id ="file_list_link" href="#">File List</a>
+</div>
+
+      <div class="clear"></div>
+    </div>
+    
+    <iframe id="search_frame"></iframe>
+    
+    <div id="content"><h1>Module: Sinatra::RespondTo
+  
+  
+  
+</h1>
+
+<dl class="box">
+  
+  
+    
+  
+    
+  
+  
+  
+    <dt class="r1 last">Defined in:</dt>
+    <dd class="r1 last">lib/sinatra/respond_to.rb<span class="defines">,<br />
+  lib/sinatra/respond_to_old.rb</span>
+</dd>
+  
+</dl>
+<div class="clear"></div>
+
+<h2>Defined Under Namespace</h2>
+<p class="children">
+   
+    
+      <strong class="modules">Modules:</strong> <span class='object_link'><a href="RespondTo/Helpers.html" title="Sinatra::RespondTo::Helpers (module)">Helpers</a></span>
+    
+   
+    
+      <strong class="classes">Classes:</strong> <span class='object_link'><a href="RespondTo/MissingTemplate.html" title="Sinatra::RespondTo::MissingTemplate (class)">MissingTemplate</a></span>, <span class='object_link'><a href="RespondTo/UnhandledFormat.html" title="Sinatra::RespondTo::UnhandledFormat (class)">UnhandledFormat</a></span>
+    
+  
+</p>
+
+  <h2>Constant Summary</h2>
+  
+    <dl class="constants">
+      
+        <dt id="SUPPORTED_ACCEPT_HEADERS-constant" class="">SUPPORTED_ACCEPT_HEADERS =
+          <div class="docstring">
+  <div class="discussion">
+    <p>
+Define all MIME types you want to support here. This conversion table will
+be used for auto-negotiation with browser in sinatra when no
+&#8216;format&#8217; parameter is specified.
+</p>
+
+
+  </div>
+</div>
+<div class="tags">
+  
+</div>
+        </dt>
+        <dd><pre class="code"><span class='lbrace token'>{</span>
+  <span class='symbol val'>:xml</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lbrack token'>[</span>
+    <span class='string val'>'text/xml'</span><span class='comma token'>,</span>
+    <span class='string val'>'application/xml'</span>
+  <span class='rbrack token'>]</span><span class='comma token'>,</span>
+  <span class='symbol val'>:html</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lbrack token'>[</span>
+    <span class='string val'>'text/html'</span><span class='comma token'>,</span>
+    <span class='string val'>'application/xhtml+xml'</span>
+  <span class='rbrack token'>]</span><span class='comma token'>,</span>
+  <span class='symbol val'>:json</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lbrack token'>[</span>
+    <span class='string val'>'application/json'</span>
+  <span class='rbrack token'>]</span>
+<span class='rbrace token'>}</span>
+</pre></dd>
+      
+        <dt id="TEXT_MIME_TYPES-constant" class="">TEXT_MIME_TYPES =
+          
+        </dt>
+        <dd><pre class="code"><span class='lbrack token'>[</span><span class='symbol val'>:txt</span><span class='comma token'>,</span> <span class='symbol val'>:html</span><span class='comma token'>,</span> <span class='symbol val'>:js</span><span class='comma token'>,</span> <span class='symbol val'>:json</span><span class='comma token'>,</span> <span class='symbol val'>:xml</span><span class='comma token'>,</span> <span class='symbol val'>:rss</span><span class='comma token'>,</span> <span class='symbol val'>:atom</span><span class='comma token'>,</span> <span class='symbol val'>:css</span><span class='comma token'>,</span> <span class='symbol val'>:asm</span><span class='comma token'>,</span> <span class='symbol val'>:c</span><span class='comma token'>,</span> <span class='symbol val'>:cc</span><span class='comma token'>,</span> <span class='symbol val'>:conf</span><span class='comma token'>,</span>
+<span class='symbol val'>:csv</span><span class='comma token'>,</span> <span class='symbol val'>:cxx</span><span class='comma token'>,</span> <span class='symbol val'>:diff</span><span class='comma token'>,</span> <span class='symbol val'>:dtd</span><span class='comma token'>,</span> <span class='symbol val'>:f</span><span class='comma token'>,</span> <span class='symbol val'>:f77</span><span class='comma token'>,</span> <span class='symbol val'>:f90</span><span class='comma token'>,</span> <span class='symbol val'>:for</span><span class='comma token'>,</span> <span class='symbol val'>:gemspec</span><span class='comma token'>,</span> <span class='symbol val'>:h</span><span class='comma token'>,</span> <span class='symbol val'>:hh</span><span class='comma token'>,</span> <span class='symbol val'>:htm</span><span class='comma token'>,</span>
+<span class='symbol val'>:log</span><span class='comma token'>,</span> <span class='symbol val'>:mathml</span><span class='comma token'>,</span> <span class='symbol val'>:mml</span><span class='comma token'>,</span> <span class='symbol val'>:p</span><span class='comma token'>,</span> <span class='symbol val'>:pas</span><span class='comma token'>,</span> <span class='symbol val'>:pl</span><span class='comma token'>,</span> <span class='symbol val'>:pm</span><span class='comma token'>,</span> <span class='symbol val'>:py</span><span class='comma token'>,</span> <span class='symbol val'>:rake</span><span class='comma token'>,</span> <span class='symbol val'>:rb</span><span class='comma token'>,</span> <span class='symbol val'>:rdf</span><span class='comma token'>,</span> <span class='symbol val'>:rtf</span><span class='comma token'>,</span> <span class='symbol val'>:ru</span><span class='comma token'>,</span>
+<span class='symbol val'>:s</span><span class='comma token'>,</span> <span class='symbol val'>:sgm</span><span class='comma token'>,</span> <span class='symbol val'>:sgml</span><span class='comma token'>,</span> <span class='symbol val'>:sh</span><span class='comma token'>,</span> <span class='symbol val'>:svg</span><span class='comma token'>,</span> <span class='symbol val'>:svgz</span><span class='comma token'>,</span> <span class='symbol val'>:text</span><span class='comma token'>,</span> <span class='symbol val'>:wsdl</span><span class='comma token'>,</span> <span class='symbol val'>:xhtml</span><span class='comma token'>,</span> <span class='symbol val'>:xsl</span><span class='comma token'>,</span> <span class='symbol val'>:xslt</span><span class='comma token'>,</span> <span class='symbol val'>:yaml</span><span class='comma token'>,</span>
+<span class='symbol val'>:yml</span><span class='comma token'>,</span> <span class='symbol val'>:ics</span><span class='comma token'>,</span> <span class='symbol val'>:png</span><span class='rbrack token'>]</span>
+</pre></dd>
+      
+    </dl>
+  
+
+
+
+  
+    <h2>
+      Class Method Summary
+      <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
+    </h2>
+
+    <ul class="summary">
+      
+        <li class="public ">
+  <span class="summary_signature">
+    
+      <a href="#registered-class_method" title="registered (class method)">+ (Object) <strong>registered</strong>(app) </a>
+    
+
+    
+  </span>
+  
+  
+  
+  
+  
+  
+
+  
+    <span class="summary_desc"><div class='inline'></div></span>
+  
+</li>
+
+      
+    </ul>
+  
+    <h2>
+      Instance Method Summary
+      <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
+    </h2>
+
+    <ul class="summary">
+      
+        <li class="public ">
+  <span class="summary_signature">
+    
+      <a href="#accept_to_array-instance_method" title="#accept_to_array (instance method)">- (Object) <strong>accept_to_array</strong> </a>
+    
+
+    
+  </span>
+  
+  
+  
+  
+  
+  
+
+  
+    <span class="summary_desc"><div class='inline'><p>
+We need to pass array of available response types to best_media_type
+method.
+</p>
+</div></span>
+  
+</li>
+
+      
+        <li class="public ">
+  <span class="summary_signature">
+    
+      <a href="#lookup_format_from_mime-instance_method" title="#lookup_format_from_mime (instance method)">- (Object) <strong>lookup_format_from_mime</strong>(mime) </a>
+    
+
+    
+  </span>
+  
+  
+  
+  
+  
+  
+
+  
+    <span class="summary_desc"><div class='inline'><p>
+Then, when we get best media type for response, we need to know which
+format to choose.
+</p>
+</div></span>
+  
+</li>
+
+      
+    </ul>
+  
+
+
+
+  <div id="class_method_details" class="method_details_list">
+    <h2>Class Method Details</h2>
+    
+    
+      <div class="method_details first">
+  <p class="signature first" id="registered-class_method">
+  
+    + (<tt>Object</tt>) <strong>registered</strong>(app) 
+  
+
+  
+</p><table class="source_code">
+  <tr>
+    <td>
+      <pre class="lines">
+
+
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141</pre>
+    </td>
+    <td>
+      <pre class="code"><span class="info file"># File 'lib/sinatra/respond_to.rb', line 59</span>
+
+<span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='registered identifier id'>registered</span><span class='lparen token'>(</span><span class='app identifier id'>app</span><span class='rparen token'>)</span>
+  <span class='app identifier id'>app</span><span class='dot token'>.</span><span class='helpers identifier id'>helpers</span> <span class='RespondTo constant id'>RespondTo</span><span class='colon2 op'>::</span><span class='Helpers constant id'>Helpers</span>
+
+  <span class='app identifier id'>app</span><span class='dot token'>.</span><span class='set identifier id'>set</span> <span class='symbol val'>:default_charset</span><span class='comma token'>,</span> <span class='string val'>'utf-8'</span>
+  <span class='app identifier id'>app</span><span class='dot token'>.</span><span class='set identifier id'>set</span> <span class='symbol val'>:default_content</span><span class='comma token'>,</span> <span class='symbol val'>:html</span>
+  <span class='app identifier id'>app</span><span class='dot token'>.</span><span class='set identifier id'>set</span> <span class='symbol val'>:assume_xhr_is_js</span><span class='comma token'>,</span> <span class='true true kw'>true</span>
+
+<span class='comment val'>#deltacloud: removed the code that tried to 'guess' content based on extension</span>
+<span class='comment val'>#as this broke blobstore api (stripping blob names). Use ?format if present, otherwise </span>
+<span class='comment val'>#use http accept, otherwise set to default</span>
+  <span class='app identifier id'>app</span><span class='dot token'>.</span><span class='before identifier id'>before</span> <span class='do do kw'>do</span>
+    <span class='if if kw'>if</span> <span class='lparen token'>(</span><span class='params identifier id'>params</span><span class='lbrack token'>[</span><span class='symbol val'>:format</span><span class='rbrack token'>]</span><span class='rparen token'>)</span>
+      <span class='@mime_types ivar id'>@mime_types</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='Helpers constant id'>Helpers</span><span class='colon2 op'>::</span><span class='mime_type identifier id'>mime_type</span><span class='lparen token'>(</span><span class='params identifier id'>params</span><span class='lbrack token'>[</span><span class='symbol val'>:format</span><span class='rbrack token'>]</span><span class='rparen token'>)</span><span class='rbrack token'>]</span>
+      <span class='format identifier id'>format</span> <span class='params identifier id'>params</span><span class='lbrack token'>[</span><span class='symbol val'>:format</span><span class='rbrack token'>]</span>
+    <span class='elsif elsif kw'>elsif</span> <span class='env identifier id'>env</span><span class='lbrack token'>[</span><span class='string val'>'HTTP_ACCEPT'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span> <span class='orop op'>||</span> <span class='env identifier id'>env</span><span class='lbrack token'>[</span><span class='string val'>'HTTP_ACCEPT'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='empty? fid id'>empty?</span>
+      <span class='ext identifier id'>ext</span> <span class='assign token'>=</span> <span class='options identifier id'>options</span><span class='dot token'>.</span><span class='default_content identifier id'>default_content</span>
+    <span class='end end kw'>end</span>
+  <span class='end end kw'>end</span>
+
+ <span class='app identifier id'>app</span><span class='dot token'>.</span><span class='configure identifier id'>configure</span> <span class='symbol val'>:development</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='dev identifier id'>dev</span><span class='bitor op'>|</span>
+    <span class='dev identifier id'>dev</span><span class='dot token'>.</span><span class='error identifier id'>error</span> <span class='UnhandledFormat constant id'>UnhandledFormat</span> <span class='do do kw'>do</span>
+      <span class='content_type identifier id'>content_type</span> <span class='symbol val'>:html</span><span class='comma token'>,</span> <span class='symbol val'>:charset</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'utf-8'</span>
+
+      <span class='lparen token'>(</span><span class='string val'>&quot;&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n&lt;style type=\&quot;text/css\&quot;&gt;\nbody { text-align:center;font-family:helvetica,arial;font-size:22px;\ncolor:#888;margin:20px}\n#c {margin:0 auto;width:500px;text-align:left}\n&lt;/style&gt;\n&lt;/head&gt;\n&lt;body&gt;\n&lt;h2&gt;Sinatra doesn't know this ditty.&lt;/h2&gt;\n&lt;img src='/__sinatra__/404.png'&gt;\n&lt;div id=\&quot;c\&quot;&gt;\nTry this:\n&lt;pre&gt;\#{request.request_method.downcase} '\#{request.path_info}' do\\n  respond_to do |wants|\\n    wants.\#{format} { \&quot;Hello World\&quot; }\\n  end\\nend&lt;/pre&gt;\n&lt;/div&gt;\n&lt;/body&gt;\n&lt;/html&gt;\n&quot;</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='gsub identifier id'>gsub</span><span class='lparen token'>(</span><span class='regexp val'>/^ {10}/</span><span class='comma token'>,</span> <span class='string val'>''</span><span
  class='rparen token'>)</span>
+    <span class='end end kw'>end</span>
+
+    <span class='dev identifier id'>dev</span><span class='dot token'>.</span><span class='error identifier id'>error</span> <span class='MissingTemplate constant id'>MissingTemplate</span> <span class='do do kw'>do</span>
+      <span class='content_type identifier id'>content_type</span> <span class='symbol val'>:html</span><span class='comma token'>,</span> <span class='symbol val'>:charset</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'utf-8'</span>
+      <span class='response identifier id'>response</span><span class='dot token'>.</span><span class='status identifier id'>status</span> <span class='assign token'>=</span> <span class='request identifier id'>request</span><span class='dot token'>.</span><span class='env identifier id'>env</span><span class='lbrack token'>[</span><span class='string val'>'sinatra.error'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='code identifier id'>code</span>
+
+      <span class='engine identifier id'>engine</span> <span class='assign token'>=</span> <span class='request identifier id'>request</span><span class='dot token'>.</span><span class='env identifier id'>env</span><span class='lbrack token'>[</span><span class='string val'>'sinatra.error'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='message identifier id'>message</span><span class='dot token'>.</span><span class='split identifier id'>split</span><span class='lparen token'>(</span><span class='string val'>'.'</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='last identifier id'>last</span>
+      <span class='engine identifier id'>engine</span> <span class='assign token'>=</span> <span class='string val'>'haml'</span> <span class='unless unless_mod kw'>unless</span> <span class='lbrack token'>[</span><span class='string val'>'haml'</span><span class='comma token'>,</span> <span class='string val'>'builder'</span><span class='comma token'>,</span> <span class='string val'>'erb'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='include? fid id'>include?</span> <span class='engine identifier id'>engine</span>
+
+      <span class='path identifier id'>path</span> <span class='assign token'>=</span> <span class='File constant id'>File</span><span class='dot token'>.</span><span class='basename identifier id'>basename</span><span class='lparen token'>(</span><span class='request identifier id'>request</span><span class='dot token'>.</span><span class='path_info identifier id'>path_info</span><span class='rparen token'>)</span>
+      <span class='path identifier id'>path</span> <span class='assign token'>=</span> <span class='string val'>&quot;root&quot;</span> <span class='if if_mod kw'>if</span> <span class='path identifier id'>path</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span> <span class='orop op'>||</span> <span class='path identifier id'>path</span><span class='dot token'>.</span><span class='empty? fid id'>empty?</span>
+
+      <span class='format identifier id'>format</span> <span class='assign token'>=</span> <span class='engine identifier id'>engine</span> <span class='eq op'>==</span> <span class='string val'>'builder'</span> <span class='question op'>?</span> <span class='string val'>'xml'</span> <span class='colon op'>:</span> <span class='string val'>'html'</span>
+
+      <span class='layout identifier id'>layout</span> <span class='assign token'>=</span> <span class='case case kw'>case</span> <span class='engine identifier id'>engine</span>
+               <span class='when when kw'>when</span> <span class='string val'>'haml'</span> <span class='then then kw'>then</span> <span class='string val'>&quot;!!!\n%html\n  %body= yield&quot;</span>
+               <span class='when when kw'>when</span> <span class='string val'>'erb'</span> <span class='then then kw'>then</span> <span class='string val'>&quot;&lt;html&gt;\n  &lt;body&gt;\n    &lt;%= yield %&gt;\n  &lt;/body&gt;\n&lt;/html&gt;&quot;</span>
+               <span class='when when kw'>when</span> <span class='string val'>'builder'</span> <span class='then then kw'>then</span> <span class='colon3 op'>::</span><span class='Sinatra constant id'>Sinatra</span><span class='colon2 op'>::</span><span class='VERSION constant id'>VERSION</span> <span class='match op'>=~</span> <span class='regexp val'>/^1.0/</span> <span class='question op'>?</span> <span class='string val'>&quot;xml &lt;&lt; yield&quot;</span> <span class='colon op'>:</span> <span class='string val'>&quot;builder do |xml|\n  xml &lt;&lt; yield\nend&quot;</span>
+               <span class='end end kw'>end</span>
+
+      <span class='layout identifier id'>layout</span> <span class='assign token'>=</span> <span class='dstring node'>&quot;&lt;small&gt;app.#{format}.#{engine}&lt;/small&gt;\n&lt;pre&gt;#{escape_html(layout)}&lt;/pre&gt;&quot;</span>
+
+      <span class='lparen token'>(</span><span class='string val'>&quot;&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n&lt;style type=\&quot;text/css\&quot;&gt;\nbody { text-align:center;font-family:helvetica,arial;font-size:22px;\ncolor:#888;margin:20px}\n#c {margin:0 auto;width:500px;text-align:left;}\nsmall {float:right;clear:both;}\npre {clear:both;}\n&lt;/style&gt;\n&lt;/head&gt;\n&lt;body&gt;\n&lt;h2&gt;Sinatra can't find \#{request.env['sinatra.error'].message}&lt;/h2&gt;\n&lt;img src='/__sinatra__/500.png'&gt;\n&lt;div id=\&quot;c\&quot;&gt;\nTry this:&lt;br /&gt;\n\#{layout}\n&lt;small&gt;\#{path}.\#{format}.\#{engine}&lt;/small&gt;\n&lt;pre&gt;Hello World!&lt;/pre&gt;\n&lt;small&gt;application.rb&lt;/small&gt;\n&lt;pre&gt;\#{request.request_method.downcase} '\#{request.path_info}' do\\n  respond_to do |wants|\\n    wants.\#{engine == 'builder' ? 'xml' : 'html'} { \#{engine} :\#{path}\#{\&quot;,\\n\#{' '*32}layout =&gt; :app\&quot; if layout} }\\n  end\\nend&lt;
 /pre&gt;\n&lt;/div&gt;\n&lt;/body&gt;\n&lt;/html&gt;\n&quot;</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='gsub identifier id'>gsub</span><span class='lparen token'>(</span><span class='regexp val'>/^ {10}/</span><span class='comma token'>,</span> <span class='string val'>''</span><span class='rparen token'>)</span>
+    <span class='end end kw'>end</span>
+
+  <span class='end end kw'>end</span>
+
+  <span class='app identifier id'>app</span><span class='dot token'>.</span><span class='class_eval identifier id'>class_eval</span> <span class='do do kw'>do</span>
+    <span class='private identifier id'>private</span>
+      <span class='def def kw'>def</span> <span class='accept_list identifier id'>accept_list</span>
+        <span class='@mime_types ivar id'>@mime_types</span> <span class='orop op'>||</span> <span class='Rack constant id'>Rack</span><span class='colon2 op'>::</span><span class='AcceptMediaTypes constant id'>AcceptMediaTypes</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='env identifier id'>env</span><span class='lbrack token'>[</span><span class='string val'>'HTTP_ACCEPT'</span><span class='rbrack token'>]</span> <span class='orop op'>||</span> <span class='string val'>''</span><span class='rparen token'>)</span>
+      <span class='end end kw'>end</span>
+
+      <span class='comment val'># Changes in 1.0 Sinatra reuse render for layout so we store</span>
+      <span class='comment val'># the original value to tell us if this is an automatic attempt</span>
+      <span class='comment val'># to do a layout call.  If it is, it might fail with Errno::ENOENT</span>
+      <span class='comment val'># and we want to pass that back to sinatra since it isn't a MissingTemplate</span>
+      <span class='comment val'># error</span>
+      <span class='def def kw'>def</span> <span class='render_with_format identifier id'>render_with_format</span><span class='lparen token'>(</span><span class='mult op'>*</span><span class='args identifier id'>args</span><span class='comma token'>,</span> <span class='bitand op'>&amp;</span><span class='block identifier id'>block</span><span class='rparen token'>)</span>
+        <span class='assumed_layout identifier id'>assumed_layout</span> <span class='assign token'>=</span> <span class='args identifier id'>args</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span> <span class='eq op'>==</span> <span class='symbol val'>:layout</span>
+        <span class='args identifier id'>args</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='dstring node'>&quot;#{args[1]}.#{format}&quot;</span><span class='dot token'>.</span><span class='to_sym identifier id'>to_sym</span> <span class='if if_mod kw'>if</span> <span class='args identifier id'>args</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='is_a? fid id'>is_a?</span><span class='lparen token'>(</span><span class='colon3 op'>::</span><span class='Symbol constant id'>Symbol</span><span class='rparen token'>)</span>
+        <span class='render_without_format identifier id'>render_without_format</span> <span class='mult op'>*</span><span class='args identifier id'>args</span><span class='comma token'>,</span> <span class='bitand op'>&amp;</span><span class='block identifier id'>block</span>
+      <span class='rescue rescue kw'>rescue</span> <span class='Errno constant id'>Errno</span><span class='colon2 op'>::</span><span class='ENOENT constant id'>ENOENT</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='e identifier id'>e</span>
+        <span class='raise identifier id'>raise</span> <span class='MissingTemplate constant id'>MissingTemplate</span><span class='comma token'>,</span> <span class='dstring node'>&quot;#{args[1]}.#{args[0]}&quot;</span> <span class='unless unless_mod kw'>unless</span> <span class='assumed_layout identifier id'>assumed_layout</span>
+        <span class='raise identifier id'>raise</span> <span class='e identifier id'>e</span>
+      <span class='end end kw'>end</span>
+      <span class='alias_method identifier id'>alias_method</span> <span class='symbol val'>:render_without_format</span><span class='comma token'>,</span> <span class='symbol val'>:render</span>
+      <span class='alias_method identifier id'>alias_method</span> <span class='symbol val'>:render</span><span class='comma token'>,</span> <span class='symbol val'>:render_with_format</span>
+
+      <span class='if if kw'>if</span> <span class='colon3 op'>::</span><span class='Sinatra constant id'>Sinatra</span><span class='colon2 op'>::</span><span class='VERSION constant id'>VERSION</span> <span class='match op'>=~</span> <span class='regexp val'>/^0\.9/</span>
+        <span class='def def kw'>def</span> <span class='lookup_layout_with_format identifier id'>lookup_layout_with_format</span><span class='lparen token'>(</span><span class='mult op'>*</span><span class='args identifier id'>args</span><span class='rparen token'>)</span>
+          <span class='args identifier id'>args</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='dstring node'>&quot;#{args[1]}.#{format}&quot;</span><span class='dot token'>.</span><span class='to_sym identifier id'>to_sym</span> <span class='if if_mod kw'>if</span> <span class='args identifier id'>args</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='is_a? fid id'>is_a?</span><span class='lparen token'>(</span><span class='colon3 op'>::</span><span class='Symbol constant id'>Symbol</span><span class='rparen token'>)</span>
+          <span class='lookup_layout_without_format identifier id'>lookup_layout_without_format</span> <span class='mult op'>*</span><span class='args identifier id'>args</span>
+        <span class='end end kw'>end</span>
+        <span class='alias_method identifier id'>alias_method</span> <span class='symbol val'>:lookup_layout_without_format</span><span class='comma token'>,</span> <span class='symbol val'>:lookup_layout</span>
+        <span class='alias_method identifier id'>alias_method</span> <span class='symbol val'>:lookup_layout</span><span class='comma token'>,</span> <span class='symbol val'>:lookup_layout_with_format</span>
+      <span class='end end kw'>end</span>
+  <span class='end end kw'>end</span>
+<span class='end end kw'>end</span>
+</pre>
+    </td>
+  </tr>
+</table>
+</div>
+    
+  </div>
+
+  <div id="instance_method_details" class="method_details_list">
+    <h2>Instance Method Details</h2>
+    
+    
+      <div class="method_details first">
+  <p class="signature first" id="accept_to_array-instance_method">
+  
+    - (<tt>Object</tt>) <strong>accept_to_array</strong> 
+  
+
+  
+</p><div class="docstring">
+  <div class="discussion">
+    <p>
+We need to pass array of available response types to best_media_type method
+</p>
+
+
+  </div>
+</div>
+<div class="tags">
+  
+</div><table class="source_code">
+  <tr>
+    <td>
+      <pre class="lines">
+
+
+45
+46
+47
+48
+49</pre>
+    </td>
+    <td>
+      <pre class="code"><span class="info file"># File 'lib/sinatra/respond_to.rb', line 45</span>
+
+<span class='def def kw'>def</span> <span class='accept_to_array identifier id'>accept_to_array</span>
+  <span class='SUPPORTED_ACCEPT_HEADERS constant id'>SUPPORTED_ACCEPT_HEADERS</span><span class='dot token'>.</span><span class='keys identifier id'>keys</span><span class='dot token'>.</span><span class='collect identifier id'>collect</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='key identifier id'>key</span><span class='bitor op'>|</span>
+    <span class='SUPPORTED_ACCEPT_HEADERS constant id'>SUPPORTED_ACCEPT_HEADERS</span><span class='lbrack token'>[</span><span class='key identifier id'>key</span><span class='rbrack token'>]</span>
+  <span class='end end kw'>end</span><span class='dot token'>.</span><span class='flatten identifier id'>flatten</span>
+<span class='end end kw'>end</span>
+</pre>
+    </td>
+  </tr>
+</table>
+</div>
+    
+      <div class="method_details ">
+  <p class="signature " id="lookup_format_from_mime-instance_method">
+  
+    - (<tt>Object</tt>) <strong>lookup_format_from_mime</strong>(mime) 
+  
+
+  
+</p><div class="docstring">
+  <div class="discussion">
+    <p>
+Then, when we get best media type for response, we need to know which
+format to choose
+</p>
+
+
+  </div>
+</div>
+<div class="tags">
+  
+</div><table class="source_code">
+  <tr>
+    <td>
+      <pre class="lines">
+
+
+53
+54
+55
+56
+57</pre>
+    </td>
+    <td>
+      <pre class="code"><span class="info file"># File 'lib/sinatra/respond_to.rb', line 53</span>
+
+<span class='def def kw'>def</span> <span class='lookup_format_from_mime identifier id'>lookup_format_from_mime</span><span class='lparen token'>(</span><span class='mime identifier id'>mime</span><span class='rparen token'>)</span>
+  <span class='SUPPORTED_ACCEPT_HEADERS constant id'>SUPPORTED_ACCEPT_HEADERS</span><span class='dot token'>.</span><span class='keys identifier id'>keys</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='format identifier id'>format</span><span class='bitor op'>|</span>
+    <span class='return return kw'>return</span> <span class='format identifier id'>format</span> <span class='if if_mod kw'>if</span> <span class='SUPPORTED_ACCEPT_HEADERS constant id'>SUPPORTED_ACCEPT_HEADERS</span><span class='lbrack token'>[</span><span class='format identifier id'>format</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='include? fid id'>include?</span><span class='lparen token'>(</span><span class='mime identifier id'>mime</span><span class='rparen token'>)</span>
+  <span class='end end kw'>end</span>
+<span class='end end kw'>end</span>
+</pre>
+    </td>
+  </tr>
+</table>
+</div>
+    
+  </div>
+
+</div>
+    
+    <div id="footer">
+  Generated on Thu Sep 30 14:43:55 2010 by 
+  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
+  0.6.1 (ruby-1.8.6).
+</div>
+
+  </body>
+</html>
\ No newline at end of file



Mime
View raw message