Sha256: 8362ed21a569b7de3917514f75b0fbbd8bc3e01c74284ae39fbb0bee9308e48f

Contents?: true

Size: 1.42 KB

Versions: 1

Compression:

Stored size: 1.42 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>run (Rev::Loop)</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/rev/loop.rb, line 86</span>
86:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run</span>
87:       <span class="ruby-identifier">raise</span> <span class="ruby-constant">RuntimeError</span>, <span class="ruby-value str">&quot;no watchers for this loop&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@watchers</span>.<span class="ruby-identifier">empty?</span>
88: 
89:       <span class="ruby-ivar">@running</span> = <span class="ruby-keyword kw">true</span>
90:       <span class="ruby-keyword kw">while</span> <span class="ruby-ivar">@running</span> <span class="ruby-keyword kw">and</span> <span class="ruby-keyword kw">not</span> <span class="ruby-ivar">@active_watchers</span>.<span class="ruby-identifier">zero?</span>
91:         <span class="ruby-identifier">run_once</span>
92:       <span class="ruby-keyword kw">end</span>
93:     <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rev-0.1.2 doc/rdoc/classes/Rev/Loop.src/M000073.html