Sha256: f10f5e4b38618aacb0af7698260715cc512d1fbef50fc9480ed5a2e69d45f876
Contents?: true
Size: 1.92 KB
Versions: 1
Compression:
Stored size: 1.92 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>unshift (Rumai::Area)</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/rumai/wm.rb, line 453</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unshift</span> <span class="ruby-operator">*</span><span class="ruby-identifier">aClients</span> <span class="ruby-identifier">aClients</span>.<span class="ruby-identifier">flatten!</span> <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">aClients</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">target</span> = <span class="ruby-identifier">clients</span>.<span class="ruby-identifier">first</span> <span class="ruby-identifier">target</span>.<span class="ruby-identifier">focus</span> <span class="ruby-keyword kw">end</span> <span class="ruby-identifier">aClients</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">import_client</span> <span class="ruby-identifier">c</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">send</span> <span class="ruby-identifier">:up</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">target</span> <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rumai-1.0.0 | doc/api/classes/Rumai/Area.src/M000094.html |