Class: RgGen::RegisterMap::RegisterMapFactory
- Inherits:
-
ComponentFactory
- Object
- Base::ComponentFactory
- InputBase::ComponentFactory
- ComponentFactory
- RgGen::RegisterMap::RegisterMapFactory
- Defined in:
- lib/rggen/core_components/register_map/register_map_factory.rb
Instance Attribute Summary
Attributes inherited from InputBase::ComponentFactory
Attributes inherited from Base::ComponentFactory
#child_factory, #item_factories, #target_component
Instance Method Summary collapse
Methods inherited from ComponentFactory
Methods inherited from InputBase::ComponentFactory
Methods inherited from Base::ComponentFactory
#create, #initialize, #root_factory
Constructor Details
This class inherits a constructor from RgGen::Base::ComponentFactory
Instance Method Details
#create_children(register_map, configuration, map) ⇒ Object
4 5 6 7 8 |
# File 'lib/rggen/core_components/register_map/register_map_factory.rb', line 4 def create_children(register_map, configuration, map) map.sheets.each do |sheet| create_child(register_map, configuration, sheet) end end |
#load(file) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/rggen/core_components/register_map/register_map_factory.rb', line 10 def load(file) map = load_file(file) if map.is_a?(GenericMap) map else = "GenericMap type required for register map: #{map.class}" fail RgGen::LoadError, end end |