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.



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

#captionObject

Returns the value of attribute caption.



757
758
759
# File 'lib/a-core.rb', line 757

def caption
  @caption
end

#contextObject

Returns the value of attribute context.



755
756
757
# File 'lib/a-core.rb', line 755

def context
  @context
end

#context_captionObject

Returns the value of attribute context_caption.



756
757
758
# File 'lib/a-core.rb', line 756

def context_caption
  @context_caption
end

#event_argsObject

Returns the value of attribute event_args.



760
761
762
# File 'lib/a-core.rb', line 760

def event_args
  @event_args
end

#event_classObject

Returns the value of attribute event_class.



759
760
761
# File 'lib/a-core.rb', line 759

def event_class
  @event_class
end

#hintObject

Returns the value of attribute hint.



758
759
760
# File 'lib/a-core.rb', line 758

def hint
  @hint
end

#image_dataObject

Returns the value of attribute image_data.



761
762
763
# File 'lib/a-core.rb', line 761

def image_data
  @image_data
end

#nameObject

Returns the value of attribute name.



754
755
756
# File 'lib/a-core.rb', line 754

def name
  @name
end

Instance Method Details

#backgroundObject



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

#foregroundObject



785
786
# File 'lib/a-core.rb', line 785

def foreground
end