Sha256: d5470299b3ec165d8f084afba98f99648d32c73113c46fea9103b50d4ce8dcbe

Contents?: true

Size: 1.37 KB

Versions: 2

Compression:

Stored size: 1.37 KB

Contents

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "DTD/xhtml1-transitional.dtd">

<!--

    push (OrderedHash)

  -->
<html>
<head>
	<title>push (OrderedHash)</title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<link rel="stylesheet" href="http://www.FaerieMUD.org/stylesheets/rdoc.css" type="text/css" />
</head>
<body>
	<pre><span class="ruby-comment cmt"># File lib/rq-2.3.1/orderedhash.rb, line 133</span>
    <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">push</span> <span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span>
        <span class="ruby-keyword kw">unless</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">include?</span> <span class="ruby-identifier">k</span>
            <span class="ruby-ivar">@order</span>.<span class="ruby-identifier">push</span> <span class="ruby-identifier">k</span>
            <span class="ruby-identifier">orig_store</span>(<span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span>)
            <span class="ruby-keyword kw">true</span>
        <span class="ruby-keyword kw">else</span>
            <span class="ruby-keyword kw">false</span>
        <span class="ruby-keyword kw">end</span>
    <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rq-3.0.0 doc/classes/OrderedHash.src/M000025.html
rq-3.1.0 doc/classes/OrderedHash.src/M000025.html