Class: Tiling::Windows

Inherits:
Object
  • Object
show all
Defined in:
lib/tiling/windows.rb

Overview

Public: Find our windows.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(workspace) ⇒ Windows

Returns a new instance of Windows.



10
11
12
13
14
# File 'lib/tiling/windows.rb', line 10

def initialize workspace
  @workspace = workspace
  @wm = WMCtrl.instance
  find_windows
end

Instance Attribute Details

#masterObject (readonly)

Returns the value of attribute master.



8
9
10
# File 'lib/tiling/windows.rb', line 8

def master
  @master
end

Instance Method Details

#countObject



20
21
22
# File 'lib/tiling/windows.rb', line 20

def count
  @windows.count
end

#each(&block) ⇒ Object



24
25
26
# File 'lib/tiling/windows.rb', line 24

def each &block
  @windows.each &block
end

#empty?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/tiling/windows.rb', line 16

def empty?
  @windows.empty?
end