Class: RgGen::Core::InputBase::ComponentFactory

Inherits:
Base::ComponentFactory show all
Defined in:
lib/rggen/core/input_base/component_factory.rb

Instance Attribute Summary

Attributes inherited from Base::ComponentFactory

#component_name, #layer

Class Method Summary collapse

Methods inherited from Base::ComponentFactory

#create, #initialize, #root_factory

Constructor Details

This class inherits a constructor from RgGen::Core::Base::ComponentFactory

Class Method Details

.disable_no_children_errorObject



12
13
14
# File 'lib/rggen/core/input_base/component_factory.rb', line 12

def disable_no_children_error
  @enable_no_children_error = false
end

.enable_no_children_errorObject



8
9
10
# File 'lib/rggen/core/input_base/component_factory.rb', line 8

def enable_no_children_error
  @enable_no_children_error = true
end

.enable_no_children_error?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/rggen/core/input_base/component_factory.rb', line 16

def enable_no_children_error?
  @enable_no_children_error.nil? || @enable_no_children_error
end