class Dry::Component::Loader
Constants
- PATH_SEPARATOR
Attributes
default_namespace[R]
namespace_separator[R]
path_separator[R]
Public Class Methods
new(config)
click to toggle source
# File lib/dry/component/loader.rb, line 48 def initialize(config) @default_namespace = config.default_namespace @namespace_separator = config.namespace_separator @path_separator = PATH_SEPARATOR end
Public Instance Methods
load(component_path)
click to toggle source
# File lib/dry/component/loader.rb, line 54 def load(component_path) Component.new(self, component_path) end