Sha256: 354b9163a184ece1cda4bb72c05521eb242305532d41698b09443ec348e924b0
Contents?: true
Size: 1.32 KB
Versions: 80
Compression:
Stored size: 1.32 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>source_descriptor (Proc)</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/proc_source.rb, line 136</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">source_descriptor</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">md</span> = <span class="ruby-regexp re">/^#<Proc:0x[0-9A-Fa-f]+@(.+):(\d+)>$/</span>.<span class="ruby-identifier">match</span>(<span class="ruby-identifier">old_inspect</span>) <span class="ruby-identifier">filename</span>, <span class="ruby-identifier">line</span> = <span class="ruby-identifier">md</span>.<span class="ruby-identifier">captures</span> <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">filename</span>, <span class="ruby-identifier">line</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
80 entries across 9 versions & 1 rubygems