internal bool TryGetConstant(RubyGlobalScope autoloadScope, string/*!*/ name, out ConstantStorage value) { using (Context.ClassHierarchyLocker()) { return TryGetConstantNoLock(autoloadScope, name, out value); } }
public static bool IsConstantDefined(RubyModule /*!*/ self, [DefaultProtocol, NotNull] string /*!*/ constantName) { RubyUtils.CheckConstantName(constantName); object constant; // MRI checks declared constans only and don't trigger autoload: return(self.TryGetConstant(null, constantName, out constant)); }