doc/api/ruby/classes/VPI/Handle.src/M000476.html in ruby-vpi-21.0.0 vs doc/api/ruby/classes/VPI/Handle.src/M000476.html in ruby-vpi-21.1.0

- old
+ new

@@ -3,38 +3,16 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> - <title>method_missing (VPI::Handle)</title> + <title>/ (VPI::Handle)</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/ruby-vpi/core/handle.rb, line 298</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span> <span class="ruby-identifier">aMeth</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">aArgs</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">aBlock</span> - <span class="ruby-comment cmt"># cache the result for future accesses, in order</span> - <span class="ruby-comment cmt"># to cut down number of calls to method_missing()</span> - <span class="ruby-identifier">eigen_class</span> = (<span class="ruby-keyword kw">class</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-keyword kw">self</span>; <span class="ruby-keyword kw">self</span>; <span class="ruby-keyword kw">end</span>) - - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">child</span> = <span class="ruby-identifier">vpi_handle_by_name</span>(<span class="ruby-identifier">aMeth</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-keyword kw">self</span>) - <span class="ruby-identifier">eigen_class</span>.<span class="ruby-identifier">class_eval</span> <span class="ruby-keyword kw">do</span> - <span class="ruby-identifier">define_method</span> <span class="ruby-identifier">aMeth</span> <span class="ruby-keyword kw">do</span> - <span class="ruby-identifier">child</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span> - - <span class="ruby-identifier">child</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-comment cmt"># XXX: using a string because define_method() does</span> - <span class="ruby-comment cmt"># not support a block argument until Ruby 1.9</span> - <span class="ruby-identifier">eigen_class</span>.<span class="ruby-identifier">class_eval</span> <span class="ruby-node">%{ - def #{aMeth}(*a, &amp;b) - access_prop(#{aMeth.inspect}, *a, &amp;b) - end - }</span>, <span class="ruby-keyword kw">__FILE__</span>, <span class="ruby-keyword kw">__LINE__</span> - - <span class="ruby-identifier">__send__</span>(<span class="ruby-identifier">aMeth</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">aArgs</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">aBlock</span>) - <span class="ruby-keyword kw">end</span> + <pre><span class="ruby-comment cmt"># File lib/ruby-vpi/core/handle.rb, line 223</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-operator">/</span> <span class="ruby-identifier">aRelativePath</span> + <span class="ruby-identifier">access_child</span>(<span class="ruby-identifier">aRelativePath</span>) <span class="ruby-keyword kw">end</span></pre> </body> </html> \ No newline at end of file