Module: Zeitwerk::Internal

Included in:
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

: (Symbol) -> void



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

def internal(method_name)
  private method_name

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