Project

General

Profile

Feature #15777

autoload?(cname, inherit=true)

Added by fxn (Xavier Noria) about 2 months ago. Updated 5 days ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:92336]

Description

Zeitwerk needs to be able to check if a given class or module has an autoload defined for a certain constant name, that would be autoload?(cname, false), similar to const_defined?(cname, false).

History

#1

Updated by fxn (Xavier Noria) about 2 months ago

  • Description updated (diff)

Updated by nobu (Nobuyoshi Nakada) 5 days ago

Changing the signature of rb_autoload_p could break API compatibility.
I think we'll need another function for it.
Maybe rb_autoload_at_p like as rb_const_defined_at?

Also available in: Atom PDF