Sha256: b9445b2859e0b909e92685b60aa57e268ac23de14e50b16adcbb180eeb0d0037
Contents?: true
Size: 1.5 KB
Versions: 6
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/gerbil/rdoc.rb, line 84</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 "# :yields: ..." string</span> <span class="ruby-identifier">a</span> <span class="ruby-operator"><<</span> <span class="ruby-node">" {|#{b}| ... }"</span> <span class="ruby-keyword kw">end</span> <span class="ruby-identifier">full_name</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">a</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
6 entries across 6 versions & 1 rubygems