Class: Glimmer::Tk::FrameProxy
- Inherits:
-
WidgetProxy
- Object
- WidgetProxy
- Glimmer::Tk::FrameProxy
- Defined in:
- lib/glimmer/tk/frame_proxy.rb
Overview
Proxy for Tk::Tile::Frame
Follows the Proxy Design Pattern
Constant Summary
Constants inherited from WidgetProxy
WidgetProxy::DEFAULT_INITIALIZERS
Instance Attribute Summary collapse
-
#tab_options ⇒ Object
readonly
Returns the value of attribute tab_options.
Attributes inherited from WidgetProxy
#args, #keyword, #parent_proxy, #tk
Instance Method Summary collapse
-
#initialize(underscored_widget_name, parent_proxy, args) ⇒ FrameProxy
constructor
A new instance of FrameProxy.
Methods inherited from WidgetProxy
#add_observer, #attribute_setter, #content, create, #get_attribute, #has_attribute?, #has_state?, #image_argument, #method_missing, #post_add_content, #post_initialize_child, #respond_to?, #set_attribute, tk_widget_class_for, #tk_widget_has_attribute_getter_setter?, #tk_widget_has_attribute_setter?, #widget_attribute_listener_installers, #widget_custom_attribute_mapping, widget_exists?, widget_proxy_class
Constructor Details
#initialize(underscored_widget_name, parent_proxy, args) ⇒ FrameProxy
Returns a new instance of FrameProxy.
32 33 34 35 36 37 38 39 |
# File 'lib/glimmer/tk/frame_proxy.rb', line 32 def initialize(, parent_proxy, args) if parent_proxy.is_a?(NotebookProxy) , args[0] = args[0].to_h.partition {|key, value| NotebookProxy::TAB_OPTIONS.include?(key.to_s)} = Hash[] args.delete_at(0) if args[0].to_a.empty? end super end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Glimmer::Tk::WidgetProxy
Instance Attribute Details
#tab_options ⇒ Object (readonly)
Returns the value of attribute tab_options.
30 31 32 |
# File 'lib/glimmer/tk/frame_proxy.rb', line 30 def end |