Class: WinWindow::Children

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/vapir-common/win_window.rb

Overview

instantiates Enumerable objects that iterate over a WinWindow’s children.

May raise a WinWindow::SystemError from WinWindow#each_child

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parentwindow) ⇒ Children

Returns a new instance of Children.



1216
1217
1218
# File 'lib/vapir-common/win_window.rb', line 1216

def initialize(parentwindow)
  @parentwindow=parentwindow
end

Instance Attribute Details

#parentwindowObject (readonly)

Returns the value of attribute parentwindow.



1215
1216
1217
# File 'lib/vapir-common/win_window.rb', line 1215

def parentwindow
  @parentwindow
end

Instance Method Details

#eachObject



1219
1220
1221
1222
1223
# File 'lib/vapir-common/win_window.rb', line 1219

def each
  parentwindow.each_child do |cwindow|
    yield cwindow
  end
end