Module: Rumai::ClientContainer
Overview
NOTE: Inheritors should override the ‘client_ids’ method.
Instance Method Summary collapse
-
#client_ids ⇒ Object
Returns the IDs of the clients in this container.
-
#clients ⇒ Object
Returns the clients contained in this container.
-
#grouping ⇒ Object
Returns all grouped clients in this container.
Instance Method Details
#client_ids ⇒ Object
Returns the IDs of the clients in this container.
458 459 460 |
# File 'lib/rumai/wm.rb', line 458 def client_ids [] end |
#clients ⇒ Object
Returns the clients contained in this container.
465 466 467 |
# File 'lib/rumai/wm.rb', line 465 def clients client_ids.map! {|i| Client.new i } end |
#grouping ⇒ Object
Returns all grouped clients in this container.
481 482 483 |
# File 'lib/rumai/wm.rb', line 481 def grouping clients.select {|c| c.group? } end |