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.
487 488 489 |
# File 'lib/rumai/wm.rb', line 487 def client_ids [] end |
#clients ⇒ Object
Returns the clients contained in this container.
494 495 496 |
# File 'lib/rumai/wm.rb', line 494 def clients client_ids.map! {|i| Client.new i } end |
#grouping ⇒ Object
Returns all grouped clients in this container.
510 511 512 |
# File 'lib/rumai/wm.rb', line 510 def grouping clients.select {|c| c.group? } end |