Class: ArcadiaUserControl::UserItem
- Inherits:
-
Object
- Object
- ArcadiaUserControl::UserItem
- Defined in:
- lib/a-core.rb
Instance Attribute Summary collapse
-
#caption ⇒ Object
Returns the value of attribute caption.
-
#context ⇒ Object
Returns the value of attribute context.
-
#context_caption ⇒ Object
Returns the value of attribute context_caption.
-
#event_args ⇒ Object
Returns the value of attribute event_args.
-
#event_class ⇒ Object
Returns the value of attribute event_class.
-
#hint ⇒ Object
Returns the value of attribute hint.
-
#image_data ⇒ Object
Returns the value of attribute image_data.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #background ⇒ Object
- #enable=(_value) ⇒ Object
- #foreground ⇒ Object
-
#initialize(_sender, _args) ⇒ UserItem
constructor
A new instance of UserItem.
- #method_missing(m, *args) ⇒ Object
Constructor Details
#initialize(_sender, _args) ⇒ UserItem
Returns a new instance of UserItem.
762 763 764 765 766 767 768 769 770 |
# File 'lib/a-core.rb', line 762 def initialize(_sender, _args) @sender = _sender if _args _args.each do |key, value| self.send(key+'=', value) end end #@item_obj = ? end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *args) ⇒ Object
772 773 774 775 776 |
# File 'lib/a-core.rb', line 772 def method_missing(m, *args) if @item_obj && m.respond_to?(m) @item_obj.send(m, *args) end end |
Instance Attribute Details
#caption ⇒ Object
Returns the value of attribute caption.
757 758 759 |
# File 'lib/a-core.rb', line 757 def @caption end |
#context ⇒ Object
Returns the value of attribute context.
755 756 757 |
# File 'lib/a-core.rb', line 755 def context @context end |
#context_caption ⇒ Object
Returns the value of attribute context_caption.
756 757 758 |
# File 'lib/a-core.rb', line 756 def @context_caption end |
#event_args ⇒ Object
Returns the value of attribute event_args.
760 761 762 |
# File 'lib/a-core.rb', line 760 def event_args @event_args end |
#event_class ⇒ Object
Returns the value of attribute event_class.
759 760 761 |
# File 'lib/a-core.rb', line 759 def event_class @event_class end |
#hint ⇒ Object
Returns the value of attribute hint.
758 759 760 |
# File 'lib/a-core.rb', line 758 def hint @hint end |
#image_data ⇒ Object
Returns the value of attribute image_data.
761 762 763 |
# File 'lib/a-core.rb', line 761 def image_data @image_data end |
#name ⇒ Object
Returns the value of attribute name.
754 755 756 |
# File 'lib/a-core.rb', line 754 def name @name end |
Instance Method Details
#background ⇒ Object
782 783 |
# File 'lib/a-core.rb', line 782 def background end |
#enable=(_value) ⇒ Object
779 780 |
# File 'lib/a-core.rb', line 779 def enable=(_value) end |
#foreground ⇒ Object
785 786 |
# File 'lib/a-core.rb', line 785 def foreground end |