Class: Module
- Inherits:
-
Object
- Object
- Module
- Includes:
- Aws::Templates::Utils::Autoload
- Defined in:
- lib/aws/templates/utils.rb,
lib/aws/templates/utils/autoload.rb
Overview
Lazy load
It allows to skip ‘require’ definitions and load all classes and modules by convention.
Direct Known Subclasses
Constant Summary
Constants included from Aws::Templates::Utils::Autoload
Aws::Templates::Utils::Autoload::MODULE_LOCKER, Aws::Templates::Utils::Autoload::REQUIRE_LOCKER, Aws::Templates::Utils::Autoload::Trace
Instance Method Summary collapse
-
#ancestors_with(base) ⇒ Object
Get all ancestors which have “base” module as one of its’ own ancestors.
Methods included from Aws::Templates::Utils::Autoload
_check_if_required, _try_to_require, atomic_require, autoload!, const_is_loaded?, #const_missing, const_path_for, #lazy, #reduce, #root_namespace?, sanitize_load_exception
Instance Method Details
#ancestors_with(base) ⇒ Object
Get all ancestors which have “base” module as one of its’ own ancestors
9 10 11 |
# File 'lib/aws/templates/utils.rb', line 9 def ancestors_with(base) ancestors.reverse_each.select { |mod| mod < base } end |