--- a/src/eric7/QScintilla/TypingCompleters/CompleterRuby.py Tue Nov 08 18:18:42 2022 +0100 +++ b/src/eric7/QScintilla/TypingCompleters/CompleterRuby.py Tue Nov 08 19:47:11 2022 +0100 @@ -207,3 +207,17 @@ (boolean) """ return self.editor.currentStyle() == QsciLexerRuby.POD + + +def createCompleter(editor, parent=None): + """ + Function to instantiate a typing completer object. + + @param editor reference to the editor object + @type QScintilla.Editor + @param parent reference to the parent object (defaults to None) + @type QObject (optional) + @return reference to the instantiated typing completer object + @rtype CompleterRuby + """ + return CompleterRuby(editor, parent=parent)