Module: RgGen::Core::RegisterMap

Defined in:
lib/rggen/core/register_map.rb,
lib/rggen/core/register_map/error.rb,
lib/rggen/core/register_map/loader.rb,
lib/rggen/core/register_map/feature.rb,
lib/rggen/core/register_map/component.rb,
lib/rggen/core/register_map/input_data.rb,
lib/rggen/core/register_map/hash_loader.rb,
lib/rggen/core/register_map/json_loader.rb,
lib/rggen/core/register_map/ruby_loader.rb,
lib/rggen/core/register_map/toml_loader.rb,
lib/rggen/core/register_map/yaml_loader.rb,
lib/rggen/core/register_map/feature_factory.rb,
lib/rggen/core/register_map/component_factory.rb

Defined Under Namespace

Modules: HashLoader, RaiseError Classes: Component, ComponentFactory, Feature, FeatureFactory, InputData, JSONLoader, Loader, RegisterMapError, RubyLoader, TOMLLoader, YAMLLoader

Class Method Summary collapse

Class Method Details

.setup(builder) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/rggen/core/register_map.rb', line 6

def self.setup(builder)
  builder.input_component_registry(:register_map) do
    register_component do
      component Component, ComponentFactory
      feature Feature, FeatureFactory
    end

    register_loader :ruby, RubyLoader
    register_loader :json, JSONLoader
    register_loader :toml, TOMLLoader
    register_loader :yaml, YAMLLoader
  end
end