Skip to content

Commit 8ab8496

Browse files
authored
Merge pull request #3 from ruby/hide_operator_methods
Hide operator methods
2 parents 93c0630 + bff6a1e commit 8ab8496

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)