Sha256: b636fdd7dbbb7a8b191aba9a533892c4b0e7539638e3465d37810bc8769cc3a5
Contents?: true
Size: 1.45 KB
Versions: 2
Compression:
Stored size: 1.45 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>grouping (Rumai)</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 77</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">grouping</span> <span class="ruby-identifier">list</span> = <span class="ruby-identifier">curr_view</span>.<span class="ruby-identifier">clients</span>.<span class="ruby-identifier">select</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">group?</span> } <span class="ruby-identifier">list</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">curr_client</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">list</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">curr_client</span>.<span class="ruby-identifier">exist?</span> <span class="ruby-identifier">list</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rumai-1.0.0 | doc/api/classes/Rumai.src/M000014.html |
rumai-2.0.0 | doc/api/classes/Rumai.src/M000014.html |