Class: ArcadiaUserControl::UserItem

Inherits:
Object
  • Object
show all
Defined in:
lib/a-core.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(_sender, _args) ⇒ UserItem

Returns a new instance of UserItem.



486
487
488
489
490
491
492
493
494
# File 'lib/a-core.rb', line 486

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



496
497
498
499
500
# File 'lib/a-core.rb', line 496

def method_missing(m, *args)  
  if @item_obj && m.respond_to?(m)
    @item_obj.send(m, *args)
  end
end

Instance Attribute Details

#captionObject

Returns the value of attribute caption.



481
482
483
# File 'lib/a-core.rb', line 481

def caption
  @caption
end

#contextObject

Returns the value of attribute context.



479
480
481
# File 'lib/a-core.rb', line 479

def context
  @context
end

#context_captionObject

Returns the value of attribute context_caption.



480
481
482
# File 'lib/a-core.rb', line 480

def context_caption
  @context_caption
end

#event_argsObject

Returns the value of attribute event_args.



484
485
486
# File 'lib/a-core.rb', line 484

def event_args
  @event_args
end

#event_classObject

Returns the value of attribute event_class.



483
484
485
# File 'lib/a-core.rb', line 483

def event_class
  @event_class
end

#hintObject

Returns the value of attribute hint.



482
483
484
# File 'lib/a-core.rb', line 482

def hint
  @hint
end

#image_dataObject

Returns the value of attribute image_data.



485
486
487
# File 'lib/a-core.rb', line 485

def image_data
  @image_data
end

#nameObject

Returns the value of attribute name.



478
479
480
# File 'lib/a-core.rb', line 478

def name
  @name
end

Instance Method Details

#backgroundObject



506
507
# File 'lib/a-core.rb', line 506

def background
end

#enable=(_value) ⇒ Object



503
504
# File 'lib/a-core.rb', line 503

def enable=(_value)
end

#foregroundObject



509
510
# File 'lib/a-core.rb', line 509

def foreground
end