AlkantarClanX12

Your IP : 13.59.234.182


Current Path : /opt/alt/ruby19/lib64/ruby/gems/1.9.1/doc/rack-1.6.4/rdoc/Rack/Session/Abstract/
Upload File :
Current File : //opt/alt/ruby19/lib64/ruby/gems/1.9.1/doc/rack-1.6.4/rdoc/Rack/Session/Abstract/SessionHash.html

<?xml version="1.0" encoding="US-ASCII"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta content="text/html; charset=US-ASCII" http-equiv="Content-Type" />

  <title>Class: Rack::Session::Abstract::SessionHash</title>

  <link rel="stylesheet" href="../../../rdoc.css" type="text/css" media="screen" />

  <script src="../../../js/jquery.js" type="text/javascript" charset="utf-8"></script>
  <script src="../../../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
  <script src="../../../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
  <script src="../../../js/darkfish.js" type="text/javascript" charset="utf-8"></script>

</head>
<body id="top" class="class">

  <div id="metadata">
    <div id="home-metadata">
      <div id="home-section" class="section">
        <h3 class="section-header">
          <a href="../../../index.html">Home</a>
          <a href="../../../index.html#classes">Classes</a>
          <a href="../../../index.html#methods">Methods</a>
        </h3>
      </div>
    </div>

    <div id="file-metadata">
      <div id="file-list-section" class="section">
        <h3 class="section-header">In Files</h3>
        <div class="section-body">
          <ul>
          
            <li><a href="../../../lib/rack/session/abstract/id_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
              class="thickbox" title="lib/rack/session/abstract/id.rb">lib/rack/session/abstract/id.rb</a></li>
          
          </ul>
        </div>
      </div>

      
    </div>

    <div id="class-metadata">
      
      <!-- Parent Class -->
      <div id="parent-class-section" class="section">
        <h3 class="section-header">Parent</h3>
        
        <p class="link"><a href="../../../Object.html">Object</a></p>
        
      </div>
      

      

      

      
      <!-- Method Quickref -->
      <div id="method-list-section" class="section">
        <h3 class="section-header">Methods</h3>
        <ul class="link-list">
          
          <li><a href="#method-c-find">::find</a></li>
          
          <li><a href="#method-c-new">::new</a></li>
          
          <li><a href="#method-c-set">::set</a></li>
          
          <li><a href="#method-c-set_options">::set_options</a></li>
          
          <li><a href="#method-i-5B-5D">#[]</a></li>
          
          <li><a href="#method-i-5B-5D-3D">#[]=</a></li>
          
          <li><a href="#method-i-clear">#clear</a></li>
          
          <li><a href="#method-i-delete">#delete</a></li>
          
          <li><a href="#method-i-destroy">#destroy</a></li>
          
          <li><a href="#method-i-each">#each</a></li>
          
          <li><a href="#method-i-empty-3F">#empty?</a></li>
          
          <li><a href="#method-i-exists-3F">#exists?</a></li>
          
          <li><a href="#method-i-fetch">#fetch</a></li>
          
          <li><a href="#method-i-has_key-3F">#has_key?</a></li>
          
          <li><a href="#method-i-id">#id</a></li>
          
          <li><a href="#method-i-include-3F">#include?</a></li>
          
          <li><a href="#method-i-inspect">#inspect</a></li>
          
          <li><a href="#method-i-key-3F">#key?</a></li>
          
          <li><a href="#method-i-keys">#keys</a></li>
          
          <li><a href="#method-i-loaded-3F">#loaded?</a></li>
          
          <li><a href="#method-i-merge-21">#merge!</a></li>
          
          <li><a href="#method-i-options">#options</a></li>
          
          <li><a href="#method-i-replace">#replace</a></li>
          
          <li><a href="#method-i-store">#store</a></li>
          
          <li><a href="#method-i-to_hash">#to_hash</a></li>
          
          <li><a href="#method-i-update">#update</a></li>
          
          <li><a href="#method-i-values">#values</a></li>
          
        </ul>
      </div>
      

      
      <!-- Included Modules -->
      <div id="includes-section" class="section">
        <h3 class="section-header">Included Modules</h3>
        <ul class="link-list">
        
        
          <li><span class="include">Enumerable</span></li>
        
        
        </ul>
      </div>
      
    </div>

    <div id="project-metadata">
      
      
      <div id="fileindex-section" class="section project-section">
        <h3 class="section-header">Files</h3>
        <ul>
        
          <li class="file"><a href="../../../KNOWN-ISSUES.html">KNOWN-ISSUES</a></li>
        
        </ul>
      </div>
      

      <div id="classindex-section" class="section project-section">
        <h3 class="section-header">Class/Module Index
          <span class="search-toggle"><img src="../../../images/find.png"
            height="16" width="16" alt="[+]"
            title="show/hide quicksearch" /></span></h3>
        <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
        <fieldset>
          <legend>Quicksearch</legend>
          <input type="text" name="quicksearch" value=""
            class="quicksearch-field" />
        </fieldset>
        </form>

        <ul class="link-list">
        
          <li><a href="../../../Rack.html">Rack</a></li>
        
          <li><a href="../../../Rack/Auth.html">Rack::Auth</a></li>
        
          <li><a href="../../../Rack/Auth/AbstractHandler.html">Rack::Auth::AbstractHandler</a></li>
        
          <li><a href="../../../Rack/Auth/AbstractRequest.html">Rack::Auth::AbstractRequest</a></li>
        
          <li><a href="../../../Rack/Auth/Basic.html">Rack::Auth::Basic</a></li>
        
          <li><a href="../../../Rack/Auth/Basic/Request.html">Rack::Auth::Basic::Request</a></li>
        
          <li><a href="../../../Rack/Auth/Digest.html">Rack::Auth::Digest</a></li>
        
          <li><a href="../../../Rack/Auth/Digest/MD5.html">Rack::Auth::Digest::MD5</a></li>
        
          <li><a href="../../../Rack/Auth/Digest/Nonce.html">Rack::Auth::Digest::Nonce</a></li>
        
          <li><a href="../../../Rack/Auth/Digest/Params.html">Rack::Auth::Digest::Params</a></li>
        
          <li><a href="../../../Rack/Auth/Digest/Request.html">Rack::Auth::Digest::Request</a></li>
        
          <li><a href="../../../Rack/BodyProxy.html">Rack::BodyProxy</a></li>
        
          <li><a href="../../../Rack/Builder.html">Rack::Builder</a></li>
        
          <li><a href="../../../Rack/Cascade.html">Rack::Cascade</a></li>
        
          <li><a href="../../../Rack/Chunked.html">Rack::Chunked</a></li>
        
          <li><a href="../../../Rack/Chunked/Body.html">Rack::Chunked::Body</a></li>
        
          <li><a href="../../../Rack/CommonLogger.html">Rack::CommonLogger</a></li>
        
          <li><a href="../../../Rack/ConditionalGet.html">Rack::ConditionalGet</a></li>
        
          <li><a href="../../../Rack/Config.html">Rack::Config</a></li>
        
          <li><a href="../../../Rack/ContentLength.html">Rack::ContentLength</a></li>
        
          <li><a href="../../../Rack/ContentType.html">Rack::ContentType</a></li>
        
          <li><a href="../../../Rack/Deflater.html">Rack::Deflater</a></li>
        
          <li><a href="../../../Rack/Deflater/DeflateStream.html">Rack::Deflater::DeflateStream</a></li>
        
          <li><a href="../../../Rack/Deflater/GzipStream.html">Rack::Deflater::GzipStream</a></li>
        
          <li><a href="../../../Rack/Directory.html">Rack::Directory</a></li>
        
          <li><a href="../../../Rack/ETag.html">Rack::ETag</a></li>
        
          <li><a href="../../../Rack/File.html">Rack::File</a></li>
        
          <li><a href="../../../Rack/ForwardRequest.html">Rack::ForwardRequest</a></li>
        
          <li><a href="../../../Rack/Handler.html">Rack::Handler</a></li>
        
          <li><a href="../../../Rack/Handler/CGI.html">Rack::Handler::CGI</a></li>
        
          <li><a href="../../../Rack/Handler/EventedMongrel.html">Rack::Handler::EventedMongrel</a></li>
        
          <li><a href="../../../Rack/Handler/FastCGI.html">Rack::Handler::FastCGI</a></li>
        
          <li><a href="../../../Rack/Handler/LSWS.html">Rack::Handler::LSWS</a></li>
        
          <li><a href="../../../Rack/Handler/Mongrel.html">Rack::Handler::Mongrel</a></li>
        
          <li><a href="../../../Rack/Handler/SCGI.html">Rack::Handler::SCGI</a></li>
        
          <li><a href="../../../Rack/Handler/SwiftipliedMongrel.html">Rack::Handler::SwiftipliedMongrel</a></li>
        
          <li><a href="../../../Rack/Handler/Thin.html">Rack::Handler::Thin</a></li>
        
          <li><a href="../../../Rack/Handler/WEBrick.html">Rack::Handler::WEBrick</a></li>
        
          <li><a href="../../../Rack/Head.html">Rack::Head</a></li>
        
          <li><a href="../../../Rack/Lint.html">Rack::Lint</a></li>
        
          <li><a href="../../../Rack/Lobster.html">Rack::Lobster</a></li>
        
          <li><a href="../../../Rack/Lock.html">Rack::Lock</a></li>
        
          <li><a href="../../../Rack/Logger.html">Rack::Logger</a></li>
        
          <li><a href="../../../Rack/MethodOverride.html">Rack::MethodOverride</a></li>
        
          <li><a href="../../../Rack/Mime.html">Rack::Mime</a></li>
        
          <li><a href="../../../Rack/MockRequest.html">Rack::MockRequest</a></li>
        
          <li><a href="../../../Rack/MockRequest/FatalWarner.html">Rack::MockRequest::FatalWarner</a></li>
        
          <li><a href="../../../Rack/MockRequest/FatalWarning.html">Rack::MockRequest::FatalWarning</a></li>
        
          <li><a href="../../../Rack/MockResponse.html">Rack::MockResponse</a></li>
        
          <li><a href="../../../Rack/Multipart.html">Rack::Multipart</a></li>
        
          <li><a href="../../../Rack/Multipart/Generator.html">Rack::Multipart::Generator</a></li>
        
          <li><a href="../../../Rack/Multipart/MultipartPartLimitError.html">Rack::Multipart::MultipartPartLimitError</a></li>
        
          <li><a href="../../../Rack/Multipart/Parser.html">Rack::Multipart::Parser</a></li>
        
          <li><a href="../../../Rack/Multipart/UploadedFile.html">Rack::Multipart::UploadedFile</a></li>
        
          <li><a href="../../../Rack/NullLogger.html">Rack::NullLogger</a></li>
        
          <li><a href="../../../Rack/Recursive.html">Rack::Recursive</a></li>
        
          <li><a href="../../../Rack/Reloader.html">Rack::Reloader</a></li>
        
          <li><a href="../../../Rack/Reloader/Stat.html">Rack::Reloader::Stat</a></li>
        
          <li><a href="../../../Rack/Request.html">Rack::Request</a></li>
        
          <li><a href="../../../Rack/Response.html">Rack::Response</a></li>
        
          <li><a href="../../../Rack/Response/Helpers.html">Rack::Response::Helpers</a></li>
        
          <li><a href="../../../Rack/RewindableInput.html">Rack::RewindableInput</a></li>
        
          <li><a href="../../../Rack/RewindableInput/Tempfile.html">Rack::RewindableInput::Tempfile</a></li>
        
          <li><a href="../../../Rack/Runtime.html">Rack::Runtime</a></li>
        
          <li><a href="../../../Rack/Sendfile.html">Rack::Sendfile</a></li>
        
          <li><a href="../../../Rack/Server.html">Rack::Server</a></li>
        
          <li><a href="../../../Rack/Server/Options.html">Rack::Server::Options</a></li>
        
          <li><a href="../../../Rack/Session.html">Rack::Session</a></li>
        
          <li><a href="../../../Rack/Session/Abstract.html">Rack::Session::Abstract</a></li>
        
          <li><a href="../../../Rack/Session/Abstract/ID.html">Rack::Session::Abstract::ID</a></li>
        
          <li><a href="../../../Rack/Session/Abstract/SessionHash.html">Rack::Session::Abstract::SessionHash</a></li>
        
          <li><a href="../../../Rack/Session/Cookie.html">Rack::Session::Cookie</a></li>
        
          <li><a href="../../../Rack/Session/Cookie/Base64.html">Rack::Session::Cookie::Base64</a></li>
        
          <li><a href="../../../Rack/Session/Cookie/Base64/JSON.html">Rack::Session::Cookie::Base64::JSON</a></li>
        
          <li><a href="../../../Rack/Session/Cookie/Base64/Marshal.html">Rack::Session::Cookie::Base64::Marshal</a></li>
        
          <li><a href="../../../Rack/Session/Cookie/Base64/ZipJSON.html">Rack::Session::Cookie::Base64::ZipJSON</a></li>
        
          <li><a href="../../../Rack/Session/Cookie/Identity.html">Rack::Session::Cookie::Identity</a></li>
        
          <li><a href="../../../Rack/Session/Memcache.html">Rack::Session::Memcache</a></li>
        
          <li><a href="../../../Rack/Session/Pool.html">Rack::Session::Pool</a></li>
        
          <li><a href="../../../Rack/ShowExceptions.html">Rack::ShowExceptions</a></li>
        
          <li><a href="../../../Rack/ShowStatus.html">Rack::ShowStatus</a></li>
        
          <li><a href="../../../Rack/Static.html">Rack::Static</a></li>
        
          <li><a href="../../../Rack/TempfileReaper.html">Rack::TempfileReaper</a></li>
        
          <li><a href="../../../Rack/URLMap.html">Rack::URLMap</a></li>
        
          <li><a href="../../../Rack/Utils.html">Rack::Utils</a></li>
        
          <li><a href="../../../Rack/Utils/Context.html">Rack::Utils::Context</a></li>
        
          <li><a href="../../../Rack/Utils/HeaderHash.html">Rack::Utils::HeaderHash</a></li>
        
          <li><a href="../../../Rack/Utils/InvalidParameterError.html">Rack::Utils::InvalidParameterError</a></li>
        
          <li><a href="../../../Rack/Utils/KeySpaceConstrainedParams.html">Rack::Utils::KeySpaceConstrainedParams</a></li>
        
          <li><a href="../../../Rack/Multipart.html">Rack::Utils::Multipart</a></li>
        
          <li><a href="../../../Rack/Utils/OkJson.html">Rack::Utils::OkJson</a></li>
        
          <li><a href="../../../Rack/Utils/OkJson/Error.html">Rack::Utils::OkJson::Error</a></li>
        
          <li><a href="../../../Rack/Utils/OkJson/Utf8Error.html">Rack::Utils::OkJson::Utf8Error</a></li>
        
          <li><a href="../../../Rack/Utils/ParameterTypeError.html">Rack::Utils::ParameterTypeError</a></li>
        
          <li><a href="../../../FCGI.html">FCGI</a></li>
        
          <li><a href="../../../FCGI/Stream.html">FCGI::Stream</a></li>
        
          <li><a href="../../../WEBrick.html">WEBrick</a></li>
        
          <li><a href="../../../WEBrick/HTTPResponse.html">WEBrick::HTTPResponse</a></li>
        
          <li><a href="../../../Object.html">Object</a></li>
        
        </ul>
        <div id="no-class-search-results" style="display: none;">No matching classes.</div>
      </div>

      
    </div>
  </div>

  <div id="documentation">
    <h1 class="class">Rack::Session::Abstract::SessionHash</h1>

    <div id="description" class="description">
      
<p><a href="SessionHash.html">SessionHash</a> is responsible to lazily load
the session from store.</p>

    </div><!-- description -->

    
    
    
    <div id="5Buntitled-5D" class="documentation-section">
      

      

      

      
      <!-- Attributes -->
      <div id="attribute-method-details" class="method-section section">
        <h3 class="section-header">Attributes</h3>

        
        <div id="id-attribute-method" class="method-detail">
          <a name="id"></a>
          
          <a name="id="></a>
          
          <div class="method-heading attribute-method-heading">
            <span class="method-name">id</span><span
              class="attribute-access-type">[W]</span>
          </div>

          <div class="method-description">
          
          
          
          </div>
        </div>
        
      </div><!-- attribute-method-details -->
      

      <!-- Methods -->
      
      <div id="public-class-method-details" class="method-section section">
        <h3 class="section-header">Public Class Methods</h3>

      
        <div id="find-method" class="method-detail ">
          <a name="method-c-find"></a>

          
          <div class="method-heading">
            <span class="method-name">find</span><span
              class="method-args">(env)</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="find-source">
<pre>
<span class="ruby-comment"># File lib/rack/session/abstract/id.rb, line 27</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">env</span>)
  <span class="ruby-identifier">env</span>[<span class="ruby-constant">ENV_SESSION_KEY</span>]
<span class="ruby-keyword">end</span></pre>
            </div><!-- find-source -->
            
          </div>

          

          
        </div><!-- find-method -->

      
        <div id="new-method" class="method-detail ">
          <a name="method-c-new"></a>

          
          <div class="method-heading">
            <span class="method-name">new</span><span
              class="method-args">(store, env)</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="new-source">
<pre>
<span class="ruby-comment"># File lib/rack/session/abstract/id.rb, line 39</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">store</span>, <span class="ruby-identifier">env</span>)
  <span class="ruby-ivar">@store</span> = <span class="ruby-identifier">store</span>
  <span class="ruby-ivar">@env</span> = <span class="ruby-identifier">env</span>
  <span class="ruby-ivar">@loaded</span> = <span class="ruby-keyword">false</span>
<span class="ruby-keyword">end</span></pre>
            </div><!-- new-source -->
            
          </div>

          

          
        </div><!-- new-method -->

      
        <div id="set-method" class="method-detail ">
          <a name="method-c-set"></a>

          
          <div class="method-heading">
            <span class="method-name">set</span><span
              class="method-args">(env, session)</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="set-source">
<pre>
<span class="ruby-comment"># File lib/rack/session/abstract/id.rb, line 31</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">set</span>(<span class="ruby-identifier">env</span>, <span class="ruby-identifier">session</span>)
  <span class="ruby-identifier">env</span>[<span class="ruby-constant">ENV_SESSION_KEY</span>] = <span class="ruby-identifier">session</span>
<span class="ruby-keyword">end</span></pre>
            </div><!-- set-source -->
            
          </div>

          

          
        </div><!-- set-method -->

      
        <div id="set_options-method" class="method-detail ">
          <a name="method-c-set_options"></a>

          
          <div class="method-heading">
            <span class="method-name">set_options</span><span
              class="method-args">(env, options)</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="set_options-source">
<pre>
<span class="ruby-comment"># File lib/rack/session/abstract/id.rb, line 35</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">set_options</span>(<span class="ruby-identifier">env</span>, <span class="ruby-identifier">options</span>)
  <span class="ruby-identifier">env</span>[<span class="ruby-constant">ENV_SESSION_OPTIONS_KEY</span>] = <span class="ruby-identifier">options</span>.<span class="ruby-identifier">dup</span>
<span class="ruby-keyword">end</span></pre>
            </div><!-- set_options-source -->
            
          </div>

          

          
        </div><!-- set_options-method -->

      
      </div><!-- public-class-method-details -->
    
      <div id="public-instance-method-details" class="method-section section">
        <h3 class="section-header">Public Instance Methods</h3>

      
        <div id="5B-5D-method" class="method-detail ">
          <a name="method-i-5B-5D"></a>

          
          <div class="method-heading">
            <span class="method-name">[]</span><span
              class="method-args">(key)</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="5B-5D-source">
<pre>
<span class="ruby-comment"># File lib/rack/session/abstract/id.rb, line 59</span>
<span class="ruby-keyword">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">key</span>)
  <span class="ruby-identifier">load_for_read!</span>
  <span class="ruby-ivar">@data</span>[<span class="ruby-identifier">key</span>.<span class="ruby-identifier">to_s</span>]
<span class="ruby-keyword">end</span></pre>
            </div><!-- 5B-5D-source -->
            
          </div>

          
          <div class="aliases">
            Also aliased as: <a href="SessionHash.html#method-i-fetch">fetch</a>
          </div>
          

          
        </div><!-- 5B-5D-method -->

      
        <div id="5B-5D-3D-method" class="method-detail ">
          <a name="method-i-5B-5D-3D"></a>

          
          <div class="method-heading">
            <span class="method-name">[]=</span><span
              class="method-args">(key, value)</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="5B-5D-3D-source">
<pre>
<span class="ruby-comment"># File lib/rack/session/abstract/id.rb, line 72</span>
<span class="ruby-keyword">def</span> <span class="ruby-operator">[]=</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>)
  <span class="ruby-identifier">load_for_write!</span>
  <span class="ruby-ivar">@data</span>[<span class="ruby-identifier">key</span>.<span class="ruby-identifier">to_s</span>] = <span class="ruby-identifier">value</span>
<span class="ruby-keyword">end</span></pre>
            </div><!-- 5B-5D-3D-source -->
            
          </div>

          
          <div class="aliases">
            Also aliased as: <a href="SessionHash.html#method-i-store">store</a>
          </div>
          

          
        </div><!-- 5B-5D-3D-method -->

      
        <div id="clear-method" class="method-detail ">
          <a name="method-i-clear"></a>

          
          <div class="method-heading">
            <span class="method-name">clear</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="clear-source">
<pre>
<span class="ruby-comment"># File lib/rack/session/abstract/id.rb, line 78</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">clear</span>
  <span class="ruby-identifier">load_for_write!</span>
  <span class="ruby-ivar">@data</span>.<span class="ruby-identifier">clear</span>
<span class="ruby-keyword">end</span></pre>
            </div><!-- clear-source -->
            
          </div>

          

          
        </div><!-- clear-method -->

      
        <div id="delete-method" class="method-detail ">
          <a name="method-i-delete"></a>

          
          <div class="method-heading">
            <span class="method-name">delete</span><span
              class="method-args">(key)</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="delete-source">
<pre>
<span class="ruby-comment"># File lib/rack/session/abstract/id.rb, line 104</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">delete</span>(<span class="ruby-identifier">key</span>)
  <span class="ruby-identifier">load_for_write!</span>
  <span class="ruby-ivar">@data</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">key</span>.<span class="ruby-identifier">to_s</span>)
<span class="ruby-keyword">end</span></pre>
            </div><!-- delete-source -->
            
          </div>

          

          
        </div><!-- delete-method -->

      
        <div id="destroy-method" class="method-detail ">
          <a name="method-i-destroy"></a>

          
          <div class="method-heading">
            <span class="method-name">destroy</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="destroy-source">
<pre>
<span class="ruby-comment"># File lib/rack/session/abstract/id.rb, line 83</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">destroy</span>
  <span class="ruby-identifier">clear</span>
  <span class="ruby-ivar">@id</span> = <span class="ruby-ivar">@store</span>.<span class="ruby-identifier">send</span>(<span class="ruby-value">:destroy_session</span>, <span class="ruby-ivar">@env</span>, <span class="ruby-identifier">id</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-keyword">end</span></pre>
            </div><!-- destroy-source -->
            
          </div>

          

          
        </div><!-- destroy-method -->

      
        <div id="each-method" class="method-detail ">
          <a name="method-i-each"></a>

          
          <div class="method-heading">
            <span class="method-name">each</span><span
              class="method-args">(&block)</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="each-source">
<pre>
<span class="ruby-comment"># File lib/rack/session/abstract/id.rb, line 54</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">each</span>(&amp;<span class="ruby-identifier">block</span>)
  <span class="ruby-identifier">load_for_read!</span>
  <span class="ruby-ivar">@data</span>.<span class="ruby-identifier">each</span>(&amp;<span class="ruby-identifier">block</span>)
<span class="ruby-keyword">end</span></pre>
            </div><!-- each-source -->
            
          </div>

          

          
        </div><!-- each-method -->

      
        <div id="empty-3F-method" class="method-detail ">
          <a name="method-i-empty-3F"></a>

          
          <div class="method-heading">
            <span class="method-name">empty?</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="empty-3F-source">
<pre>
<span class="ruby-comment"># File lib/rack/session/abstract/id.rb, line 127</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">empty?</span>
  <span class="ruby-identifier">load_for_read!</span>
  <span class="ruby-ivar">@data</span>.<span class="ruby-identifier">empty?</span>
<span class="ruby-keyword">end</span></pre>
            </div><!-- empty-3F-source -->
            
          </div>

          

          
        </div><!-- empty-3F-method -->

      
        <div id="exists-3F-method" class="method-detail ">
          <a name="method-i-exists-3F"></a>

          
          <div class="method-heading">
            <span class="method-name">exists?</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="exists-3F-source">
<pre>
<span class="ruby-comment"># File lib/rack/session/abstract/id.rb, line 117</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">exists?</span>
  <span class="ruby-keyword">return</span> <span class="ruby-ivar">@exists</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">instance_variable_defined?</span>(<span class="ruby-value">:@exists</span>)
  <span class="ruby-ivar">@data</span> = {}
  <span class="ruby-ivar">@exists</span> = <span class="ruby-ivar">@store</span>.<span class="ruby-identifier">send</span>(<span class="ruby-value">:session_exists?</span>, <span class="ruby-ivar">@env</span>)
<span class="ruby-keyword">end</span></pre>
            </div><!-- exists-3F-source -->
            
          </div>

          

          
        </div><!-- exists-3F-method -->

      
        <div id="fetch-method" class="method-detail method-alias">
          <a name="method-i-fetch"></a>

          
          <div class="method-heading">
            <span class="method-name">fetch</span><span
              class="method-args">(key)</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
          </div>

          

          
          <div class="aliases">
            Alias for: <a href="SessionHash.html#method-i-5B-5D">[]</a>
          </div>
          
        </div><!-- fetch-method -->

      
        <div id="has_key-3F-method" class="method-detail ">
          <a name="method-i-has_key-3F"></a>

          
          <div class="method-heading">
            <span class="method-name">has_key?</span><span
              class="method-args">(key)</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="has_key-3F-source">
<pre>
<span class="ruby-comment"># File lib/rack/session/abstract/id.rb, line 65</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">key</span>)
  <span class="ruby-identifier">load_for_read!</span>
  <span class="ruby-ivar">@data</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">key</span>.<span class="ruby-identifier">to_s</span>)
<span class="ruby-keyword">end</span></pre>
            </div><!-- has_key-3F-source -->
            
          </div>

          
          <div class="aliases">
            Also aliased as: <a href="SessionHash.html#method-i-key-3F">key?</a>, <a href="SessionHash.html#method-i-include-3F">include?</a>
          </div>
          

          
        </div><!-- has_key-3F-method -->

      
        <div id="id-method" class="method-detail ">
          <a name="method-i-id"></a>

          
          <div class="method-heading">
            <span class="method-name">id</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="id-source">
<pre>
<span class="ruby-comment"># File lib/rack/session/abstract/id.rb, line 45</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">id</span>
  <span class="ruby-keyword">return</span> <span class="ruby-ivar">@id</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@loaded</span> <span class="ruby-keyword">or</span> <span class="ruby-identifier">instance_variable_defined?</span>(<span class="ruby-value">:@id</span>)
  <span class="ruby-ivar">@id</span> = <span class="ruby-ivar">@store</span>.<span class="ruby-identifier">send</span>(<span class="ruby-value">:extract_session_id</span>, <span class="ruby-ivar">@env</span>)
<span class="ruby-keyword">end</span></pre>
            </div><!-- id-source -->
            
          </div>

          

          
        </div><!-- id-method -->

      
        <div id="include-3F-method" class="method-detail method-alias">
          <a name="method-i-include-3F"></a>

          
          <div class="method-heading">
            <span class="method-name">include?</span><span
              class="method-args">(key)</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
          </div>

          

          
          <div class="aliases">
            Alias for: <a href="SessionHash.html#method-i-has_key-3F">has_key?</a>
          </div>
          
        </div><!-- include-3F-method -->

      
        <div id="inspect-method" class="method-detail ">
          <a name="method-i-inspect"></a>

          
          <div class="method-heading">
            <span class="method-name">inspect</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="inspect-source">
<pre>
<span class="ruby-comment"># File lib/rack/session/abstract/id.rb, line 109</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">inspect</span>
  <span class="ruby-keyword">if</span> <span class="ruby-identifier">loaded?</span>
    <span class="ruby-ivar">@data</span>.<span class="ruby-identifier">inspect</span>
  <span class="ruby-keyword">else</span>
    <span class="ruby-node">&quot;#&lt;#{self.class}:0x#{self.object_id.to_s(16)} not yet loaded&gt;&quot;</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
            </div><!-- inspect-source -->
            
          </div>

          

          
        </div><!-- inspect-method -->

      
        <div id="key-3F-method" class="method-detail method-alias">
          <a name="method-i-key-3F"></a>

          
          <div class="method-heading">
            <span class="method-name">key?</span><span
              class="method-args">(key)</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
          </div>

          

          
          <div class="aliases">
            Alias for: <a href="SessionHash.html#method-i-has_key-3F">has_key?</a>
          </div>
          
        </div><!-- key-3F-method -->

      
        <div id="keys-method" class="method-detail ">
          <a name="method-i-keys"></a>

          
          <div class="method-heading">
            <span class="method-name">keys</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="keys-source">
<pre>
<span class="ruby-comment"># File lib/rack/session/abstract/id.rb, line 132</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">keys</span>
  <span class="ruby-ivar">@data</span>.<span class="ruby-identifier">keys</span>
<span class="ruby-keyword">end</span></pre>
            </div><!-- keys-source -->
            
          </div>

          

          
        </div><!-- keys-method -->

      
        <div id="loaded-3F-method" class="method-detail ">
          <a name="method-i-loaded-3F"></a>

          
          <div class="method-heading">
            <span class="method-name">loaded?</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="loaded-3F-source">
<pre>
<span class="ruby-comment"># File lib/rack/session/abstract/id.rb, line 123</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">loaded?</span>
  <span class="ruby-ivar">@loaded</span>
<span class="ruby-keyword">end</span></pre>
            </div><!-- loaded-3F-source -->
            
          </div>

          

          
        </div><!-- loaded-3F-method -->

      
        <div id="merge-21-method" class="method-detail method-alias">
          <a name="method-i-merge-21"></a>

          
          <div class="method-heading">
            <span class="method-name">merge!</span><span
              class="method-args">(hash)</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
          </div>

          

          
          <div class="aliases">
            Alias for: <a href="SessionHash.html#method-i-update">update</a>
          </div>
          
        </div><!-- merge-21-method -->

      
        <div id="options-method" class="method-detail ">
          <a name="method-i-options"></a>

          
          <div class="method-heading">
            <span class="method-name">options</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="options-source">
<pre>
<span class="ruby-comment"># File lib/rack/session/abstract/id.rb, line 50</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">options</span>
  <span class="ruby-ivar">@env</span>[<span class="ruby-constant">ENV_SESSION_OPTIONS_KEY</span>]
<span class="ruby-keyword">end</span></pre>
            </div><!-- options-source -->
            
          </div>

          

          
        </div><!-- options-method -->

      
        <div id="replace-method" class="method-detail ">
          <a name="method-i-replace"></a>

          
          <div class="method-heading">
            <span class="method-name">replace</span><span
              class="method-args">(hash)</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="replace-source">
<pre>
<span class="ruby-comment"># File lib/rack/session/abstract/id.rb, line 99</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">replace</span>(<span class="ruby-identifier">hash</span>)
  <span class="ruby-identifier">load_for_write!</span>
  <span class="ruby-ivar">@data</span>.<span class="ruby-identifier">replace</span>(<span class="ruby-identifier">stringify_keys</span>(<span class="ruby-identifier">hash</span>))
<span class="ruby-keyword">end</span></pre>
            </div><!-- replace-source -->
            
          </div>

          

          
        </div><!-- replace-method -->

      
        <div id="store-method" class="method-detail method-alias">
          <a name="method-i-store"></a>

          
          <div class="method-heading">
            <span class="method-name">store</span><span
              class="method-args">(key, value)</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
          </div>

          

          
          <div class="aliases">
            Alias for: <a href="SessionHash.html#method-i-5B-5D-3D">[]=</a>
          </div>
          
        </div><!-- store-method -->

      
        <div id="to_hash-method" class="method-detail ">
          <a name="method-i-to_hash"></a>

          
          <div class="method-heading">
            <span class="method-name">to_hash</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="to_hash-source">
<pre>
<span class="ruby-comment"># File lib/rack/session/abstract/id.rb, line 88</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_hash</span>
  <span class="ruby-identifier">load_for_read!</span>
  <span class="ruby-ivar">@data</span>.<span class="ruby-identifier">dup</span>
<span class="ruby-keyword">end</span></pre>
            </div><!-- to_hash-source -->
            
          </div>

          

          
        </div><!-- to_hash-method -->

      
        <div id="update-method" class="method-detail ">
          <a name="method-i-update"></a>

          
          <div class="method-heading">
            <span class="method-name">update</span><span
              class="method-args">(hash)</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="update-source">
<pre>
<span class="ruby-comment"># File lib/rack/session/abstract/id.rb, line 93</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">update</span>(<span class="ruby-identifier">hash</span>)
  <span class="ruby-identifier">load_for_write!</span>
  <span class="ruby-ivar">@data</span>.<span class="ruby-identifier">update</span>(<span class="ruby-identifier">stringify_keys</span>(<span class="ruby-identifier">hash</span>))
<span class="ruby-keyword">end</span></pre>
            </div><!-- update-source -->
            
          </div>

          
          <div class="aliases">
            Also aliased as: <a href="SessionHash.html#method-i-merge-21">merge!</a>
          </div>
          

          
        </div><!-- update-method -->

      
        <div id="values-method" class="method-detail ">
          <a name="method-i-values"></a>

          
          <div class="method-heading">
            <span class="method-name">values</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="values-source">
<pre>
<span class="ruby-comment"># File lib/rack/session/abstract/id.rb, line 136</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">values</span>
  <span class="ruby-ivar">@data</span>.<span class="ruby-identifier">values</span>
<span class="ruby-keyword">end</span></pre>
            </div><!-- values-source -->
            
          </div>

          

          
        </div><!-- values-method -->

      
      </div><!-- public-instance-method-details -->
    
    </div><!-- 5Buntitled-5D -->
  

  </div><!-- documentation -->

  <div id="validator-badges">
    <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
    <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
      Rdoc Generator</a> 2</small>.</p>
  </div>

</body>
</html>