Skip to content

Commit bff6a1e

Browse files
committed
Hide operator methods
1 parent 6d0a9d1 commit bff6a1e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

lib/repl_type_completor/result.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@
44

55
module ReplTypeCompletor
66
class Result
7-
HIDDEN_METHODS = %w[Namespace TypeName] # defined by rbs, should be hidden
7+
OPERATOR_METHODS = %w[! != !~ % & * ** + +@ - -@ / < << <= <=> == === =~ > >= >> [] []= ^ ` | ~]
8+
HIDDEN_METHODS = [
9+
# defined by RBS, should be hidden
10+
'Namespace', 'TypeName',
11+
# operator methods does not need to be completed
12+
*OPERATOR_METHODS
13+
]
814
RESERVED_WORDS = %w[
915
__ENCODING__ __LINE__ __FILE__
1016
BEGIN END

0 commit comments

Comments
 (0)