Sha256: b5558574b258113b4ed742e77f68762f76bbf12339b90bc58849958ef5302041
Contents?: true
Size: 1.3 KB
Versions: 3
Compression:
Stored size: 1.3 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>elapse (Time)</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/facet/time/elapse.rb, line 11</span> <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">elapse</span> <span class="ruby-identifier">raise</span> <span class="ruby-value str">"Need block"</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">block_given?</span> <span class="ruby-identifier">t0</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>.<span class="ruby-identifier">to_f</span> <span class="ruby-keyword kw">yield</span> <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>.<span class="ruby-identifier">to_f</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">t0</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
facets-0.7.0 | doc/atomic-rdoc/classes/Time.src/M000039.html |
facets-0.7.1 | doc/atomic-rdoc/classes/Time.src/M000039.html |
facets-0.7.2 | doc/atomic-rdoc/classes/Time.src/M000039.html |