Class: TkWrapper::Widgets::Base::WindowInfo
- Inherits:
-
Object
- Object
- TkWrapper::Widgets::Base::WindowInfo
- Defined in:
- lib/widgets/base/window_info.rb
Instance Method Summary collapse
-
#initialize(widget) ⇒ WindowInfo
constructor
A new instance of WindowInfo.
- #method_missing(name, *args) ⇒ Object
- #respond_to_missing?(name) ⇒ Boolean
Constructor Details
#initialize(widget) ⇒ WindowInfo
Returns a new instance of WindowInfo.
2 3 4 |
# File 'lib/widgets/base/window_info.rb', line 2 def initialize() @widget = end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/widgets/base/window_info.rb', line 6 def method_missing(name, *args) if @widget..respond_to?("winfo_#{name}") @widget..send("winfo_#{name}", *args) else super end end |
Instance Method Details
#respond_to_missing?(name) ⇒ Boolean
14 15 16 |
# File 'lib/widgets/base/window_info.rb', line 14 def respond_to_missing?(name, *) @widget..respond_to?("winfo_#{name}") || super end |