Module: WxExtensions::Window
- Includes:
- Enumerable
- Defined in:
- lib/reactive-wx/wx_ext/window.rb
Instance Method Summary collapse
-
#each ⇒ Object
ruby way to iterate over children.
-
#method_missing(name, *args) ⇒ Object
access children window by name directly as attribute reader.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
access children window by name directly as attribute reader
12 13 14 |
# File 'lib/reactive-wx/wx_ext/window.rb', line 12 def method_missing(name, *args) Wx::Window.find_window_by_name(name.to_s, self) || super end |
Instance Method Details
#each ⇒ Object
ruby way to iterate over children
7 8 9 |
# File 'lib/reactive-wx/wx_ext/window.rb', line 7 def each get_children.each {|item| yield item} end |