class Aws::EagerLoader
@api private
def initialize
def initialize @loaded = Set.new end
def load(klass_or_module)
-
(self)
-
Parameters:
-
klass_or_module
(Module
) --
def load(klass_or_module) @loaded << klass_or_module klass_or_module.constants.each do |const_name| path = klass_or_module.autoload?(const_name) begin require(path) if path const = klass_or_module.const_get(const_name) self.load(const) if Module === const && !@loaded.include?(const) rescue LoadError end end self end