Class: ArcadiaUserControl

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

Direct Known Subclasses

ArcadiaMainMenu, ArcadiaMainToolbar

Defined Under Namespace

Classes: UserItem

Constant Summary collapse

SUF =
'user_control'

Instance Method Summary collapse

Instance Method Details

#itemsObject

def initialize

  @items = Hash.new
end


1514
1515
1516
1517
# File 'lib/a-core.rb', line 1514

def items
  @items = Hash.new if @items.nil?
  @items
end

#new_item(_sender, _args) ⇒ Object



1519
1520
1521
1522
# File 'lib/a-core.rb', line 1519

def new_item(_sender, _args)
  item = self.class::UserItem.new(_sender, _args)
  items[_args['name']]= item if _args['name']
end