Skip to content

Commit

Permalink
Merge pull request #3 from ruby/hide_operator_methods
Browse files Browse the repository at this point in the history
Hide operator methods
  • Loading branch information
tompng authored Dec 7, 2023
2 parents 93c0630 + bff6a1e commit 8ab8496
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/repl_type_completor/result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@

module ReplTypeCompletor
class Result
HIDDEN_METHODS = %w[Namespace TypeName] # defined by rbs, should be hidden
OPERATOR_METHODS = %w[! != !~ % & * ** + +@ - -@ / < << <= <=> == === =~ > >= >> [] []= ^ ` | ~]
HIDDEN_METHODS = [
# defined by RBS, should be hidden
'Namespace', 'TypeName',
# operator methods does not need to be completed
*OPERATOR_METHODS
]
RESERVED_WORDS = %w[
__ENCODING__ __LINE__ __FILE__
BEGIN END
Expand Down

0 comments on commit 8ab8496

Please sign in to comment.