Sha256: 0a56ee8f542dfb2fd6a3b33ac623a5ab504114db606110d40bd72d605f9a4419

Contents?: true

Size: 1.69 KB

Versions: 2

Compression:

Stored size: 1.69 KB

Contents

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

<html>
<head>
  <title>parse (Rumai::IXP::Agent::MODES)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 134</span>
      <span class="ruby-keyword kw">def</span> <span class="ruby-constant">MODES</span>.<span class="ruby-identifier">parse</span> <span class="ruby-identifier">aMode</span>
        <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">aMode</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:split</span>
          <span class="ruby-identifier">aMode</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp re">//</span>).<span class="ruby-identifier">inject</span>(<span class="ruby-value">0</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">m</span>,<span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">m</span> <span class="ruby-operator">|</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">c</span>].<span class="ruby-identifier">to_i</span> }
        <span class="ruby-keyword kw">else</span>
          <span class="ruby-identifier">aMode</span>.<span class="ruby-identifier">to_i</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
rumai-1.0.0 doc/api/classes/Rumai/IXP/Agent/MODES.src/M000061.html
rumai-2.0.0 doc/api/classes/Rumai/IXP/Agent/MODES.src/M000059.html