doc/api/classes/Rumai/Area.html in rumai-2.1.0 vs doc/api/classes/Rumai/Area.html in rumai-3.0.0

- old
+ new

@@ -55,99 +55,110 @@ <dt>#</dt> <dd> <ul> - <li><a href="#M000075"><<</a></li> + <li><a href="#M000080"><<</a></li> </ul> </dd> <dt>C</dt> <dd> <ul> - <li><a href="#M000063">chain</a>,</li> + <li><a href="#M000067">chain</a>,</li> - <li><a href="#M000065">client_ids</a>,</li> + <li><a href="#M000070">client_ids</a>,</li> - <li><a href="#M000060">column?</a>,</li> + <li><a href="#M000063">column?</a>,</li> - <li><a href="#M000079">concat</a>,</li> + <li><a href="#M000084">concat</a>,</li> - <li><a href="#M000061">curr</a></li> + <li><a href="#M000065">curr</a></li> </ul> </dd> <dt>E</dt> <dd> <ul> - <li><a href="#M000066">each</a>,</li> + <li><a href="#M000072">each</a>,</li> - <li><a href="#M000064">exist?</a></li> + <li><a href="#M000069">exist?</a></li> </ul> </dd> <dt>F</dt> <dd> <ul> - <li><a href="#M000059">float?</a>,</li> + <li><a href="#M000066">floating</a>,</li> - <li><a href="#M000068">focus</a></li> + <li><a href="#M000062">floating?</a>,</li> + <li><a href="#M000076">focus</a></li> + </ul> </dd> <dt>I</dt> <dd> <ul> - <li><a href="#M000076">insert</a></li> + <li><a href="#M000081">insert</a></li> </ul> </dd> <dt>L</dt> <dd> <ul> - <li><a href="#M000067">layout=</a>,</li> + <li><a href="#M000073">layout=</a>,</li> - <li><a href="#M000070">length</a>,</li> + <li><a href="#M000078">length</a>,</li> - <li><a href="#M000080">length=</a></li> + <li><a href="#M000085">length=</a></li> </ul> </dd> + <dt>M</dt> + <dd> + <ul> + + <li><a href="#M000064">managed?</a></li> + + </ul> + </dd> + <dt>N</dt> <dd> <ul> - <li><a href="#M000058">new</a></li> + <li><a href="#M000060">new</a></li> </ul> </dd> <dt>P</dt> <dd> <ul> - <li><a href="#M000071">push</a></li> + <li><a href="#M000079">push</a></li> </ul> </dd> <dt>U</dt> <dd> <ul> - <li><a href="#M000078">unshift</a></li> + <li><a href="#M000082">unshift</a></li> </ul> </dd> </dl> @@ -211,13 +222,13 @@ <div class="sectiontitle">Class Public methods</div> <div class="method"> - <div class="title" id="M000061"> + <div class="title" id="M000065"> - <a name="M000061"></a><b>curr</b>() + <a name="M000065"></a><b>curr</b>() </div> <div class="description"> <p> @@ -229,33 +240,67 @@ <div class="sourcecode"> <p class="source-link"> - Source: <a href="javascript:toggleSource('M000061_source')" id="l_M000061_source">show</a> + Source: <a href="javascript:toggleSource('M000065_source')" id="l_M000065_source">show</a> - | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L418" target="_blank" class="github_url">on GitHub</a> + | <a href="http://github.com/sunaku/rumai/blob/7df1e5ba1e98a3810c3730a1a28ab64c33ccc355/lib/rumai/wm.rb#L438" target="_blank" class="github_url">on GitHub</a> </p> - <div id="M000061_source" class="dyn-source"> - <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 418</span> + <div id="M000065_source" class="dyn-source"> + <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 438</span> <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">curr</span> <span class="ruby-constant">View</span>.<span class="ruby-identifier">curr</span>.<span class="ruby-identifier">area_of_client</span> <span class="ruby-constant">Client</span>.<span class="ruby-identifier">curr</span> <span class="ruby-keyword kw">end</span></pre> </div> </div> </div> <div class="method"> - <div class="title" id="M000058"> + <div class="title" id="M000066"> - <a name="M000058"></a><b>new</b>(area_id, view = View.curr) + <a name="M000066"></a><b>floating</b>(view = View.curr) </div> <div class="description"> + <p> +Returns the floating area in the given view. +</p> + + </div> + + + + + <div class="sourcecode"> + <p class="source-link"> + Source: <a href="javascript:toggleSource('M000066_source')" id="l_M000066_source">show</a> + + | <a href="http://github.com/sunaku/rumai/blob/7df1e5ba1e98a3810c3730a1a28ab64c33ccc355/lib/rumai/wm.rb#L445" target="_blank" class="github_url">on GitHub</a> + + </p> + <div id="M000066_source" class="dyn-source"> + <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 445</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">floating</span> <span class="ruby-identifier">view</span> = <span class="ruby-constant">View</span>.<span class="ruby-identifier">curr</span> + <span class="ruby-identifier">new</span> <span class="ruby-constant">FLOATING_AREA_ID</span>, <span class="ruby-identifier">view</span> + <span class="ruby-keyword kw">end</span></pre> + </div> + </div> + + </div> + + <div class="method"> + <div class="title" id="M000060"> + + <a name="M000060"></a><b>new</b>(area_id, view = View.curr) + + </div> + + <div class="description"> <dl> <dt>view</dt><dd>the view object which contains this area </dd> </dl> @@ -265,17 +310,17 @@ <div class="sourcecode"> <p class="source-link"> - Source: <a href="javascript:toggleSource('M000058_source')" id="l_M000058_source">show</a> + Source: <a href="javascript:toggleSource('M000060_source')" id="l_M000060_source">show</a> - | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L394" target="_blank" class="github_url">on GitHub</a> + | <a href="http://github.com/sunaku/rumai/blob/7df1e5ba1e98a3810c3730a1a28ab64c33ccc355/lib/rumai/wm.rb#L412" target="_blank" class="github_url">on GitHub</a> </p> - <div id="M000058_source" class="dyn-source"> - <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 394</span> + <div id="M000060_source" class="dyn-source"> + <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 412</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">area_id</span>, <span class="ruby-identifier">view</span> = <span class="ruby-constant">View</span>.<span class="ruby-identifier">curr</span> <span class="ruby-ivar">@id</span> = <span class="ruby-constant">Integer</span>(<span class="ruby-identifier">area_id</span>) <span class="ruby-keyword kw">rescue</span> <span class="ruby-identifier">area_id</span> <span class="ruby-ivar">@view</span> = <span class="ruby-identifier">view</span> <span class="ruby-keyword kw">end</span></pre> </div> @@ -284,31 +329,31 @@ </div> <div class="sectiontitle">Instance Public methods</div> <div class="method"> - <div class="title" id="M000075"> + <div class="title" id="M000080"> - <a name="M000075"></a><b>&lt;&lt;</b>(*clients) + <a name="M000080"></a><b>&lt;&lt;</b>(*clients) </div> <div class="description"> <p> -Alias for <a href="Area.html#M000071">push</a> +Alias for <a href="Area.html#M000079">push</a> </p> </div> </div> <div class="method"> - <div class="title" id="M000063"> + <div class="title" id="M000067"> - <a name="M000063"></a><b>chain</b>() + <a name="M000067"></a><b>chain</b>() </div> <div class="description"> <p> @@ -320,29 +365,29 @@ <div class="sourcecode"> <p class="source-link"> - Source: <a href="javascript:toggleSource('M000063_source')" id="l_M000063_source">show</a> + Source: <a href="javascript:toggleSource('M000067_source')" id="l_M000067_source">show</a> - | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L427" target="_blank" class="github_url">on GitHub</a> + | <a href="http://github.com/sunaku/rumai/blob/7df1e5ba1e98a3810c3730a1a28ab64c33ccc355/lib/rumai/wm.rb#L454" target="_blank" class="github_url">on GitHub</a> </p> - <div id="M000063_source" class="dyn-source"> - <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 427</span> + <div id="M000067_source" class="dyn-source"> + <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 454</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chain</span> <span class="ruby-ivar">@view</span>.<span class="ruby-identifier">areas</span> <span class="ruby-keyword kw">end</span></pre> </div> </div> </div> <div class="method"> - <div class="title" id="M000065"> + <div class="title" id="M000070"> - <a name="M000065"></a><b>client_ids</b>() + <a name="M000070"></a><b>client_ids</b>() </div> <div class="description"> <p> @@ -354,29 +399,29 @@ <div class="sourcecode"> <p class="source-link"> - Source: <a href="javascript:toggleSource('M000065_source')" id="l_M000065_source">show</a> + Source: <a href="javascript:toggleSource('M000070_source')" id="l_M000070_source">show</a> - | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L443" target="_blank" class="github_url">on GitHub</a> + | <a href="http://github.com/sunaku/rumai/blob/7df1e5ba1e98a3810c3730a1a28ab64c33ccc355/lib/rumai/wm.rb#L470" target="_blank" class="github_url">on GitHub</a> </p> - <div id="M000065_source" class="dyn-source"> - <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 443</span> + <div id="M000070_source" class="dyn-source"> + <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 470</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">client_ids</span> <span class="ruby-ivar">@view</span>.<span class="ruby-identifier">client_ids</span> <span class="ruby-ivar">@id</span> <span class="ruby-keyword kw">end</span></pre> </div> </div> </div> <div class="method"> - <div class="title" id="M000060"> + <div class="title" id="M000063"> - <a name="M000060"></a><b>column?</b>() + <a name="M000063"></a><b>column?</b>() </div> <div class="description"> <p> @@ -384,33 +429,40 @@ </p> </div> + <div class="aka"> + This method is also aliased as + + <a href="Area.html#M000064">managed?</a> + + </div> + <div class="sourcecode"> <p class="source-link"> - Source: <a href="javascript:toggleSource('M000060_source')" id="l_M000060_source">show</a> + Source: <a href="javascript:toggleSource('M000063_source')" id="l_M000063_source">show</a> - | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L409" target="_blank" class="github_url">on GitHub</a> + | <a href="http://github.com/sunaku/rumai/blob/7df1e5ba1e98a3810c3730a1a28ab64c33ccc355/lib/rumai/wm.rb#L427" target="_blank" class="github_url">on GitHub</a> </p> - <div id="M000060_source" class="dyn-source"> - <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 409</span> + <div id="M000063_source" class="dyn-source"> + <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 427</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">column?</span> - <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">float?</span> + <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">floating?</span> <span class="ruby-keyword kw">end</span></pre> </div> </div> </div> <div class="method"> - <div class="title" id="M000079"> + <div class="title" id="M000084"> - <a name="M000079"></a><b>concat</b>(area) + <a name="M000084"></a><b>concat</b>(area) </div> <div class="description"> <p> @@ -422,29 +474,29 @@ <div class="sourcecode"> <p class="source-link"> - Source: <a href="javascript:toggleSource('M000079_source')" id="l_M000079_source">show</a> + Source: <a href="javascript:toggleSource('M000084_source')" id="l_M000084_source">show</a> - | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L535" target="_blank" class="github_url">on GitHub</a> + | <a href="http://github.com/sunaku/rumai/blob/7df1e5ba1e98a3810c3730a1a28ab64c33ccc355/lib/rumai/wm.rb#L560" target="_blank" class="github_url">on GitHub</a> </p> - <div id="M000079_source" class="dyn-source"> - <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 535</span> + <div id="M000084_source" class="dyn-source"> + <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 560</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">concat</span> <span class="ruby-identifier">area</span> <span class="ruby-identifier">push</span> <span class="ruby-identifier">area</span>.<span class="ruby-identifier">clients</span> <span class="ruby-keyword kw">end</span></pre> </div> </div> </div> <div class="method"> - <div class="title" id="M000066"> + <div class="title" id="M000072"> - <a name="M000066"></a><b>each</b>(&amp;block) + <a name="M000072"></a><b>each</b>(&amp;block) </div> <div class="description"> <p> @@ -456,29 +508,29 @@ <div class="sourcecode"> <p class="source-link"> - Source: <a href="javascript:toggleSource('M000066_source')" id="l_M000066_source">show</a> + Source: <a href="javascript:toggleSource('M000072_source')" id="l_M000072_source">show</a> - | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L452" target="_blank" class="github_url">on GitHub</a> + | <a href="http://github.com/sunaku/rumai/blob/7df1e5ba1e98a3810c3730a1a28ab64c33ccc355/lib/rumai/wm.rb#L479" target="_blank" class="github_url">on GitHub</a> </p> - <div id="M000066_source" class="dyn-source"> - <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 452</span> + <div id="M000072_source" class="dyn-source"> + <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 479</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span> <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span> <span class="ruby-identifier">clients</span>.<span class="ruby-identifier">each</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>) <span class="ruby-keyword kw">end</span></pre> </div> </div> </div> <div class="method"> - <div class="title" id="M000064"> + <div class="title" id="M000069"> - <a name="M000064"></a><b>exist?</b>() + <a name="M000069"></a><b>exist?</b>() </div> <div class="description"> <p> @@ -490,29 +542,29 @@ <div class="sourcecode"> <p class="source-link"> - Source: <a href="javascript:toggleSource('M000064_source')" id="l_M000064_source">show</a> + Source: <a href="javascript:toggleSource('M000069_source')" id="l_M000069_source">show</a> - | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L434" target="_blank" class="github_url">on GitHub</a> + | <a href="http://github.com/sunaku/rumai/blob/7df1e5ba1e98a3810c3730a1a28ab64c33ccc355/lib/rumai/wm.rb#L461" target="_blank" class="github_url">on GitHub</a> </p> - <div id="M000064_source" class="dyn-source"> - <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 434</span> + <div id="M000069_source" class="dyn-source"> + <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 461</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exist?</span> <span class="ruby-identifier">chain</span>.<span class="ruby-identifier">include?</span> <span class="ruby-keyword kw">self</span> <span class="ruby-keyword kw">end</span></pre> </div> </div> </div> <div class="method"> - <div class="title" id="M000059"> + <div class="title" id="M000062"> - <a name="M000059"></a><b>float?</b>() + <a name="M000062"></a><b>floating?</b>() </div> <div class="description"> <p> @@ -524,29 +576,29 @@ <div class="sourcecode"> <p class="source-link"> - Source: <a href="javascript:toggleSource('M000059_source')" id="l_M000059_source">show</a> + Source: <a href="javascript:toggleSource('M000062_source')" id="l_M000062_source">show</a> - | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L402" target="_blank" class="github_url">on GitHub</a> + | <a href="http://github.com/sunaku/rumai/blob/7df1e5ba1e98a3810c3730a1a28ab64c33ccc355/lib/rumai/wm.rb#L420" target="_blank" class="github_url">on GitHub</a> </p> - <div id="M000059_source" class="dyn-source"> - <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 402</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">float?</span> - <span class="ruby-ivar">@id</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'~'</span> + <div id="M000062_source" class="dyn-source"> + <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 420</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">floating?</span> + <span class="ruby-ivar">@id</span> <span class="ruby-operator">==</span> <span class="ruby-constant">FLOATING_AREA_ID</span> <span class="ruby-keyword kw">end</span></pre> </div> </div> </div> <div class="method"> - <div class="title" id="M000068"> + <div class="title" id="M000076"> - <a name="M000068"></a><b>focus</b>() + <a name="M000076"></a><b>focus</b>() </div> <div class="description"> <p> @@ -558,29 +610,29 @@ <div class="sourcecode"> <p class="source-link"> - Source: <a href="javascript:toggleSource('M000068_source')" id="l_M000068_source">show</a> + Source: <a href="javascript:toggleSource('M000076_source')" id="l_M000076_source">show</a> - | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L468" target="_blank" class="github_url">on GitHub</a> + | <a href="http://github.com/sunaku/rumai/blob/7df1e5ba1e98a3810c3730a1a28ab64c33ccc355/lib/rumai/wm.rb#L495" target="_blank" class="github_url">on GitHub</a> </p> - <div id="M000068_source" class="dyn-source"> - <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 468</span> + <div id="M000076_source" class="dyn-source"> + <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 495</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">focus</span> <span class="ruby-ivar">@view</span>.<span class="ruby-identifier">ctl</span>.<span class="ruby-identifier">write</span> <span class="ruby-node">&quot;select #{@id}&quot;</span> <span class="ruby-keyword kw">end</span></pre> </div> </div> </div> <div class="method"> - <div class="title" id="M000076"> + <div class="title" id="M000081"> - <a name="M000076"></a><b>insert</b>(*clients) + <a name="M000081"></a><b>insert</b>(*clients) </div> <div class="description"> <p> @@ -592,17 +644,17 @@ <div class="sourcecode"> <p class="source-link"> - Source: <a href="javascript:toggleSource('M000076_source')" id="l_M000076_source">show</a> + Source: <a href="javascript:toggleSource('M000081_source')" id="l_M000081_source">show</a> - | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L505" target="_blank" class="github_url">on GitHub</a> + | <a href="http://github.com/sunaku/rumai/blob/7df1e5ba1e98a3810c3730a1a28ab64c33ccc355/lib/rumai/wm.rb#L531" target="_blank" class="github_url">on GitHub</a> </p> - <div id="M000076_source" class="dyn-source"> - <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 505</span> + <div id="M000081_source" class="dyn-source"> + <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 531</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">insert</span> <span class="ruby-operator">*</span><span class="ruby-identifier">clients</span> <span class="ruby-identifier">clients</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">clients</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-identifier">clients</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> @@ -613,13 +665,13 @@ </div> </div> <div class="method"> - <div class="title" id="M000067"> + <div class="title" id="M000073"> - <a name="M000067"></a><b>layout=</b>(mode) + <a name="M000073"></a><b>layout=</b>(mode) </div> <div class="description"> <p> @@ -631,29 +683,29 @@ <div class="sourcecode"> <p class="source-link"> - Source: <a href="javascript:toggleSource('M000067_source')" id="l_M000067_source">show</a> + Source: <a href="javascript:toggleSource('M000073_source')" id="l_M000073_source">show</a> - | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L459" target="_blank" class="github_url">on GitHub</a> + | <a href="http://github.com/sunaku/rumai/blob/7df1e5ba1e98a3810c3730a1a28ab64c33ccc355/lib/rumai/wm.rb#L486" target="_blank" class="github_url">on GitHub</a> </p> - <div id="M000067_source" class="dyn-source"> - <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 459</span> + <div id="M000073_source" class="dyn-source"> + <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 486</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">layout=</span> <span class="ruby-identifier">mode</span> <span class="ruby-ivar">@view</span>.<span class="ruby-identifier">ctl</span>.<span class="ruby-identifier">write</span> <span class="ruby-node">&quot;colmode #{@id} #{mode}&quot;</span> <span class="ruby-keyword kw">end</span></pre> </div> </div> </div> <div class="method"> - <div class="title" id="M000070"> + <div class="title" id="M000078"> - <a name="M000070"></a><b>length</b>() + <a name="M000078"></a><b>length</b>() </div> <div class="description"> <p> @@ -665,29 +717,29 @@ <div class="sourcecode"> <p class="source-link"> - Source: <a href="javascript:toggleSource('M000070_source')" id="l_M000070_source">show</a> + Source: <a href="javascript:toggleSource('M000078_source')" id="l_M000078_source">show</a> - | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L477" target="_blank" class="github_url">on GitHub</a> + | <a href="http://github.com/sunaku/rumai/blob/7df1e5ba1e98a3810c3730a1a28ab64c33ccc355/lib/rumai/wm.rb#L504" target="_blank" class="github_url">on GitHub</a> </p> - <div id="M000070_source" class="dyn-source"> - <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 477</span> + <div id="M000078_source" class="dyn-source"> + <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 504</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">length</span> <span class="ruby-identifier">client_ids</span>.<span class="ruby-identifier">length</span> <span class="ruby-keyword kw">end</span></pre> </div> </div> </div> <div class="method"> - <div class="title" id="M000080"> + <div class="title" id="M000085"> - <a name="M000080"></a><b>length=</b>(max_clients) + <a name="M000085"></a><b>length=</b>(max_clients) </div> <div class="description"> <p> @@ -703,17 +755,17 @@ <div class="sourcecode"> <p class="source-link"> - Source: <a href="javascript:toggleSource('M000080_source')" id="l_M000080_source">show</a> + Source: <a href="javascript:toggleSource('M000085_source')" id="l_M000085_source">show</a> - | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L545" target="_blank" class="github_url">on GitHub</a> + | <a href="http://github.com/sunaku/rumai/blob/7df1e5ba1e98a3810c3730a1a28ab64c33ccc355/lib/rumai/wm.rb#L570" target="_blank" class="github_url">on GitHub</a> </p> - <div id="M000080_source" class="dyn-source"> - <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 545</span> + <div id="M000085_source" class="dyn-source"> + <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 570</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">length=</span> <span class="ruby-identifier">max_clients</span> <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">max_clients</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span> <span class="ruby-identifier">len</span>, <span class="ruby-identifier">out</span> = <span class="ruby-identifier">length</span>, <span class="ruby-identifier">fringe</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">len</span> <span class="ruby-operator">&gt;</span> <span class="ruby-identifier">max_clients</span> @@ -732,65 +784,82 @@ </div> </div> <div class="method"> - <div class="title" id="M000071"> + <div class="title" id="M000064"> - <a name="M000071"></a><b>push</b>(*clients) + <a name="M000064"></a><b>managed?</b>() </div> <div class="description"> <p> +Alias for <a href="Area.html#M000063">column?</a> +</p> + + </div> + + + + </div> + + <div class="method"> + <div class="title" id="M000079"> + + <a name="M000079"></a><b>push</b>(*clients) + + </div> + + <div class="description"> + <p> Inserts the given clients at the bottom of this area. </p> </div> <div class="aka"> This method is also aliased as - <a href="Area.html#M000075">&lt;&lt;</a> + <a href="Area.html#M000080">&lt;&lt;</a> </div> <div class="sourcecode"> <p class="source-link"> - Source: <a href="javascript:toggleSource('M000071_source')" id="l_M000071_source">show</a> + Source: <a href="javascript:toggleSource('M000079_source')" id="l_M000079_source">show</a> - | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L484" target="_blank" class="github_url">on GitHub</a> + | <a href="http://github.com/sunaku/rumai/blob/7df1e5ba1e98a3810c3730a1a28ab64c33ccc355/lib/rumai/wm.rb#L511" target="_blank" class="github_url">on GitHub</a> </p> - <div id="M000071_source" class="dyn-source"> - <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 484</span> + <div id="M000079_source" class="dyn-source"> + <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 511</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">push</span> <span class="ruby-operator">*</span><span class="ruby-identifier">clients</span> <span class="ruby-identifier">clients</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">clients</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-identifier">insert</span> <span class="ruby-identifier">clients</span> - <span class="ruby-comment cmt"># adjust the order of clients in this</span> - <span class="ruby-comment cmt"># area to reflect the tail-wise insertion</span> + <span class="ruby-comment cmt"># move inserted clients to bottom</span> <span class="ruby-identifier">clients</span>.<span class="ruby-identifier">each_with_index</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">c</span>, <span class="ruby-identifier">i</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">until</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">id</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">client_ids</span>[<span class="ruby-operator">-</span><span class="ruby-identifier">i</span>.<span class="ruby-identifier">succ</span>] - <span class="ruby-identifier">c</span>.<span class="ruby-identifier">swap</span> <span class="ruby-identifier">:down</span> + <span class="ruby-identifier">c</span>.<span class="ruby-identifier">send</span> <span class="ruby-identifier">:down</span> <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">end</span></pre> </div> </div> </div> <div class="method"> - <div class="title" id="M000078"> + <div class="title" id="M000082"> - <a name="M000078"></a><b>unshift</b>(*clients) + <a name="M000082"></a><b>unshift</b>(*clients) </div> <div class="description"> <p> @@ -802,27 +871,26 @@ <div class="sourcecode"> <p class="source-link"> - Source: <a href="javascript:toggleSource('M000078_source')" id="l_M000078_source">show</a> + Source: <a href="javascript:toggleSource('M000082_source')" id="l_M000082_source">show</a> - | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L517" target="_blank" class="github_url">on GitHub</a> + | <a href="http://github.com/sunaku/rumai/blob/7df1e5ba1e98a3810c3730a1a28ab64c33ccc355/lib/rumai/wm.rb#L543" target="_blank" class="github_url">on GitHub</a> </p> - <div id="M000078_source" class="dyn-source"> - <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 517</span> + <div id="M000082_source" class="dyn-source"> + <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 543</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unshift</span> <span class="ruby-operator">*</span><span class="ruby-identifier">clients</span> <span class="ruby-identifier">clients</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">clients</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-identifier">insert</span> <span class="ruby-identifier">clients</span> - <span class="ruby-comment cmt"># adjust the order of clients in this</span> - <span class="ruby-comment cmt"># area to reflect the head-wise insertion</span> + <span class="ruby-comment cmt"># move inserted clients to top</span> <span class="ruby-identifier">clients</span>.<span class="ruby-identifier">each_with_index</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">c</span>, <span class="ruby-identifier">i</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">until</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">id</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">client_ids</span>[<span class="ruby-identifier">i</span>] - <span class="ruby-identifier">c</span>.<span class="ruby-identifier">swap</span> <span class="ruby-identifier">:up</span> + <span class="ruby-identifier">c</span>.<span class="ruby-identifier">send</span> <span class="ruby-identifier">:up</span> <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">end</span></pre> </div> </div> \ No newline at end of file