--- a/src/eric7/Utilities/ClassBrowsers/rbclbr.py Tue Nov 08 16:57:46 2022 +0100 +++ b/src/eric7/Utilities/ClassBrowsers/rbclbr.py Tue Nov 08 18:03:11 2022 +0100 @@ -165,6 +165,13 @@ _modules = {} # cache of modules we've seen +def clearModulesCache(): + """ + Function to clear the cached modules. + """ + _modules.clear() + + class VisibilityMixin(ClbrBaseClasses.ClbrVisibilityMixinBase): """ Mixin class implementing the notion of visibility. @@ -255,13 +262,18 @@ self.setPrivate() -def readmodule_ex(module, path=None): +def readmodule_ex(module, path=None, isTypeFile=False): """ Read a Ruby file and return a dictionary of classes, functions and modules. - @param module name of the Ruby file (string) - @param path path the file should be searched in (list of strings) + @param module name of the Ruby file + @type str + @param path path the file should be searched in + @type list of str + @param isTypeFile flag indicating a file of this type + @type bool @return the resulting dictionary + @rtype dict """ global _modules