Class: Tiling::Windows
- Inherits:
-
Object
- Object
- Tiling::Windows
- Defined in:
- lib/tiling/windows.rb
Overview
Public: Find our windows.
Instance Attribute Summary collapse
-
#master ⇒ Object
readonly
Returns the value of attribute master.
Instance Method Summary collapse
- #count ⇒ Object
- #each(&block) ⇒ Object
- #empty? ⇒ Boolean
-
#initialize(workspace) ⇒ Windows
constructor
A new instance of Windows.
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
#master ⇒ Object (readonly)
Returns the value of attribute master.
8 9 10 |
# File 'lib/tiling/windows.rb', line 8 def master @master end |
Instance Method Details
#count ⇒ Object
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
16 17 18 |
# File 'lib/tiling/windows.rb', line 16 def empty? @windows.empty? end |