Class: RgGen::RegisterMap::ItemFactory

Inherits:
InputBase::ItemFactory show all
Includes:
RaiseError
Defined in:
lib/rggen/core_components/register_map/item_factory.rb

Instance Attribute Summary

Attributes inherited from Base::ItemFactory

#target_item, #target_items

Instance Method Summary collapse

Methods inherited from InputBase::ItemFactory

#active_item_factory?, #passive_item_factory?

Instance Method Details

#create(component, configuration, cell = nil) ⇒ Object



6
7
8
9
10
11
# File 'lib/rggen/core_components/register_map/item_factory.rb', line 6

def create(component, configuration, cell = nil)
  convert_cell_value(cell)
  create_item(component, cell) do |item|
    item.build(cell) unless cell.nil?
  end
end