Sha256: 0495c081f3c5bb4083c1b1d51634158b6d31427fbd7bd7ff87d37e9e669bd836

Contents?: true

Size: 1.5 KB

Versions: 2

Compression:

Stored size: 1.5 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>decl (RDoc::AnyMethod)</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/erbook/rdoc.rb, line 81</span>
    <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">decl</span>
      <span class="ruby-identifier">a</span> = <span class="ruby-identifier">params</span>.<span class="ruby-identifier">dup</span>
      <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">b</span> = <span class="ruby-identifier">block_params</span>
        <span class="ruby-identifier">a</span>.<span class="ruby-identifier">sub!</span> <span class="ruby-regexp re">%r/\s*\#.*(?=.$)/</span>, <span class="ruby-value str">''</span> <span class="ruby-comment cmt"># remove &quot;# :yields: ...&quot; string</span>
        <span class="ruby-identifier">a</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot; {|#{b}| ... }&quot;</span>
      <span class="ruby-keyword kw">end</span>
      <span class="ruby-identifier">full_name</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">a</span>
    <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
erbook-5.0.0 doc/api/classes/RDoc/AnyMethod.src/M000004.html
erbook-4.0.0 doc/api/classes/RDoc/AnyMethod.src/M000006.html