class Aws::EagerLoader
@api private
Attributes
@return [Set<Module>]
Public Class Methods
Public Instance Methods
Source
# File lib/aws-sdk-core/eager_loader.rb, line 18 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
@param [Module] klass_or_module @return [self]