Module: Rumai::ClientContainer

Included in:
Rumai, Area, View
Defined in:
lib/rumai/wm.rb

Overview

Note:

Inheritors should override the #client_ids method.

Instance Method Summary collapse

Instance Method Details

#client_idsObject

Returns the IDs of the clients in this container.



487
488
489
# File 'lib/rumai/wm.rb', line 487

def client_ids
  []
end

#clientsObject

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

#groupingObject

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