aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rdoc/method_attr.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rdoc/method_attr.rb')
-rw-r--r--lib/rdoc/method_attr.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rdoc/method_attr.rb b/lib/rdoc/method_attr.rb
index 50eab141be..3cef78c4a5 100644
--- a/lib/rdoc/method_attr.rb
+++ b/lib/rdoc/method_attr.rb
@@ -1,4 +1,4 @@
-# frozen_string_literal: false
+# frozen_string_literal: true
##
# Abstract class representing either a method or an attribute.
@@ -188,7 +188,7 @@ class RDoc::MethodAttr < RDoc::CodeObject
next if String === ancestor
next if parent == ancestor
- other = ancestor.find_method_named('#' << name) ||
+ other = ancestor.find_method_named('#' + name) ||
ancestor.find_attribute_named(name)
return other if other