Sha256: fa991940f984e1afb7adb23c703a2e8bcb199e9c88021f73fb8dfa6540715992
Contents?: true
Size: 1.3 KB
Versions: 1
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>watcher_delegate (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> <span class="ruby-comment cmt"># File lib/rev/watcher.rb, line 15</span> 15: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">watcher_delegate</span>(<span class="ruby-identifier">proxy_var</span>) 16: <span class="ruby-node">%w{attach detach enable disable}</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">method</span><span class="ruby-operator">|</span> 17: <span class="ruby-identifier">module_eval</span> <span class="ruby-value str">"def \#{method}(*args)\nif \#{proxy_var}\n\#{proxy_var}.\#{method}(*args)\nreturn self\nend\n\nsuper\nend\n"</span> 18: <span class="ruby-keyword kw">end</span> 19: <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/Watcher.src/M000110.html |