This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# This is a private module.
|
||||
module Zeitwerk::Internal
|
||||
# @sig (Symbol) -> void
|
||||
def internal(method_name)
|
||||
private method_name
|
||||
|
||||
mangled = "__#{method_name}"
|
||||
alias_method mangled, method_name
|
||||
public mangled
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user