src/eric7/QScintilla/TypingCompleters/CompleterRuby.py

branch
eric7
changeset 9493
aeaa6bf49831
parent 9473
3f23dbf37dbe
child 9653
e67609152c5e
--- 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)

eric ide

mercurial