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.



458
459
460
# File 'lib/rumai/wm.rb', line 458

def client_ids
  []
end

#clientsObject

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

#groupingObject

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