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.



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

#captionObject

Returns the value of attribute caption.



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

def caption
  @caption
end

#contextObject

Returns the value of attribute context.



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

def context
  @context
end

#context_captionObject

Returns the value of attribute context_caption.



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

def context_caption
  @context_caption
end

#event_argsObject

Returns the value of attribute event_args.



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

def event_args
  @event_args
end

#event_classObject

Returns the value of attribute event_class.



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

def event_class
  @event_class
end

#hintObject

Returns the value of attribute hint.



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

def hint
  @hint
end

#image_dataObject

Returns the value of attribute image_data.



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

def image_data
  @image_data
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

Instance Method Details

#backgroundObject



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

#foregroundObject



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

def foreground
end