From 5c646ca0a09c5249b20cf5645e27ee75fe4dff04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ka=C3=ADque=20Kandy=20Koga?= Date: Sun, 10 Oct 2021 16:30:42 -0300 Subject: [ruby/irb] Ignore parenthesis during completion Rename method https://github.com/ruby/irb/commit/619aecb412 --- lib/irb/completion.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb index a8a73cce80..9121174a50 100644 --- a/lib/irb/completion.rb +++ b/lib/irb/completion.rb @@ -197,7 +197,7 @@ module IRB end candidates.grep(/^#{Regexp.quote(sym)}/) - when /^::([A-Z][^:\.\(]*)$/ + when /^::([A-Z][^:\.\(\)]*)$/ # Absolute Constant or class methods receiver = $1 candidates = Object.constants.collect{|m| m.to_s} -- cgit v1.2.3