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.
485 486 487 488 489 490 491 492 493 |
# File 'lib/a-core.rb', line 485 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
495 496 497 498 499 |
# File 'lib/a-core.rb', line 495 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.
480 481 482 |
# File 'lib/a-core.rb', line 480 def @caption end |
#context ⇒ Object
Returns the value of attribute context.
478 479 480 |
# File 'lib/a-core.rb', line 478 def context @context end |
#context_caption ⇒ Object
Returns the value of attribute context_caption.
479 480 481 |
# File 'lib/a-core.rb', line 479 def @context_caption end |
#event_args ⇒ Object
Returns the value of attribute event_args.
483 484 485 |
# File 'lib/a-core.rb', line 483 def event_args @event_args end |
#event_class ⇒ Object
Returns the value of attribute event_class.
482 483 484 |
# File 'lib/a-core.rb', line 482 def event_class @event_class end |
#hint ⇒ Object
Returns the value of attribute hint.
481 482 483 |
# File 'lib/a-core.rb', line 481 def hint @hint end |
#image_data ⇒ Object
Returns the value of attribute image_data.
484 485 486 |
# File 'lib/a-core.rb', line 484 def image_data @image_data end |
#name ⇒ Object
Returns the value of attribute name.
477 478 479 |
# File 'lib/a-core.rb', line 477 def name @name end |
Instance Method Details
#background ⇒ Object
505 506 |
# File 'lib/a-core.rb', line 505 def background end |
#enable=(_value) ⇒ Object
502 503 |
# File 'lib/a-core.rb', line 502 def enable=(_value) end |
#foreground ⇒ Object
508 509 |
# File 'lib/a-core.rb', line 508 def foreground end |