Module: Im::ExplicitNamespace
- Extended by:
- Internal
- Defined in:
- lib/im/explicit_namespace.rb
Overview
Centralizes the logic for the trace point used to detect the creation of explicit namespaces, needed to descend into matching subdirectories right after the constant has been defined.
The implementation assumes an explicit namespace is managed by one loader. Loaders that reopen namespaces owned by other projects are responsible for loading their constant before setup. This is documented.
Class Attribute Summary collapse
-
.cpaths ⇒ Object
readonly
Maps constant paths that correspond to explicit namespaces according to the file system, to the loader responsible for them.
-
.mutex ⇒ Object
readonly
Returns the value of attribute mutex.
-
.tracer ⇒ Object
readonly
Returns the value of attribute tracer.
Method Summary
Methods included from Internal
Class Attribute Details
.cpaths ⇒ Object (readonly)
Maps constant paths that correspond to explicit namespaces according to the file system, to the loader responsible for them.
19 20 21 |
# File 'lib/im/explicit_namespace.rb', line 19 def cpaths @cpaths end |
.mutex ⇒ Object (readonly)
Returns the value of attribute mutex.
23 24 25 |
# File 'lib/im/explicit_namespace.rb', line 23 def mutex @mutex end |
.tracer ⇒ Object (readonly)
Returns the value of attribute tracer.
27 28 29 |
# File 'lib/im/explicit_namespace.rb', line 27 def tracer @tracer end |