Module: Zeitwerk::Internal

Included in:
ExplicitNamespace, Loader, Loader::Callbacks, Loader::Config
Defined in:
lib/zeitwerk/internal.rb

Overview

This is a private module.

Instance Method Summary collapse

Instance Method Details

#internal(method_name) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/zeitwerk/internal.rb', line 5

def internal(method_name)
  private method_name

  mangled = "__#{method_name}"
  alias_method mangled, method_name
  public mangled
end