<?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 -> 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->loop, "@active_watchers", INT2NUM(NUM2INT(rb_iv_get(watcher_data->loop, "@active_watchers")) + 1) ); return self; }</pre> </body> </html>