Module: Rumai::ClientContainer
Overview
Note:
Inheritors should override the ClientContainer#client_ids method.
Instance Method Summary
-
- (Object) client_ids
Returns the IDs of the clients in this container.
-
- (Object) clients
Returns the clients contained in this container.
-
- (Object) grouping
Returns all grouped clients in this container.
Instance Method Details
- (Object) client_ids
Returns the IDs of the clients in this container.
455 456 457 |
# File 'lib/rumai/wm.rb', line 455 def client_ids [] end |
- (Object) clients
Returns the clients contained in this container.
462 463 464 |
# File 'lib/rumai/wm.rb', line 462 def clients client_ids.map! {|i| Client.new i } end |
- (Object) grouping
Returns all grouped clients in this container.
478 479 480 |
# File 'lib/rumai/wm.rb', line 478 def grouping clients.select {|c| c.group? } end |