[ruby-core:93298] [Ruby trunk Feature#15777] autoload?(cname, inherit=true)
From:
eregontp@...
Date:
2019-06-21 08:13:56 UTC
List:
ruby-core #93298
Issue #15777 has been updated by Eregon (Benoit Daloze). Assignee set to nobu (Nobuyoshi Nakada) The new patch looks fine to me. @nobu I'll let you merge it since you did most of the review. ---------------------------------------- Feature #15777: autoload?(cname, inherit=true) https://bugs.ruby-lang.org/issues/15777#change-78767 * Author: fxn (Xavier Noria) * Status: Open * Priority: Normal * Assignee: nobu (Nobuyoshi Nakada) * 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>