Sha256: 41ec7c1fb7f08cd378c20b6d40c569f4508f99dc17afac8b05916452b386ebc6

Contents?: true

Size: 1.11 KB

Versions: 2

Compression:

Stored size: 1.11 KB

Contents

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

<!--

    to_a (OrderedHash)

  -->
<html>
<head>
	<title>to_a (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 148</span>
    <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_a</span>
        <span class="ruby-identifier">ary</span> = []
        <span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">ary</span> <span class="ruby-operator">&lt;&lt;</span> [<span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span>] }
        <span class="ruby-identifier">ary</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/M000027.html
rq-3.1.0 doc/classes/OrderedHash.src/M000027.html