[ruby-core:93249] [Ruby trunk Feature#15777] autoload?(cname, inherit=true)

From: jean.boussier@...
Date: 2019-06-19 14:24:09 UTC
List: ruby-core #93249
Issue #15777 has been updated by byroot (Jean Boussier).


@nobu I edited the patch the way you suggested. Let me know if you desire further changes.

----------------------------------------
Feature #15777: autoload?(cname, inherit=true)
https://bugs.ruby-lang.org/issues/15777#change-78700

* Author: fxn (Xavier Noria)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
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)`.




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next