Class: WinWindow::Children
- Inherits:
-
Object
- Object
- WinWindow::Children
- 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
-
#parentwindow ⇒ Object
readonly
Returns the value of attribute parentwindow.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(parentwindow) ⇒ Children
constructor
A new instance of Children.
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
#parentwindow ⇒ Object (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
#each ⇒ Object
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 |