diff --git a/lib/repl_type_completor/result.rb b/lib/repl_type_completor/result.rb index 1de88e5..4d1c72b 100644 --- a/lib/repl_type_completor/result.rb +++ b/lib/repl_type_completor/result.rb @@ -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