Sha256: 9b0a6d40ae46779441b260fcaa7bae8ac258c59da2bfb0dc87626821a5f50cb2

Contents?: true

Size: 993 Bytes

Versions: 1

Compression:

Stored size: 993 Bytes

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>enable (Rev::Watcher)</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>/**
 *  call-seq:
 *    Rev::Watcher.enable -&gt; Rev::Watcher
 * 
 * Re-enable a watcher which has been temporarily disabled.  See the
 * disable method for a more thorough explanation.
 */
static VALUE Rev_Watcher_enable(VALUE self)
{
  struct Rev_Watcher *watcher_data;
  Data_Get_Struct(self, struct Rev_Watcher, watcher_data);

  rb_iv_set(
      watcher_data-&gt;loop, 
      &quot;@active_watchers&quot;,
      INT2NUM(NUM2INT(rb_iv_get(watcher_data-&gt;loop, &quot;@active_watchers&quot;)) + 1)
  );

  return self;
}</pre>
</body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rev-0.1.2 doc/rdoc/classes/Rev/Watcher.src/M000115.html