Skip to content

Commit 6c7d2d2

Browse files
nobuhsbt
authored andcommitted
Separate send into public_send and __send__
1 parent 6261819 commit 6c7d2d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/rdoc/markup/formatter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def convert_regexp_handling target
156156
method_name = "handle_regexp_#{name}"
157157

158158
if respond_to? method_name then
159-
target.text = send method_name, target
159+
target.text = public_send method_name, target
160160
handled = true
161161
end
162162
end

lib/rdoc/ri/driver.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,7 @@ def list_methods_matching name
12281228
# +cache+ indicate if it is a class or instance method.
12291229

12301230
def load_method store, cache, klass, type, name
1231-
methods = store.send(cache)[klass]
1231+
methods = store.public_send(cache)[klass]
12321232

12331233
return unless methods
12341234

0 commit comments

Comments
 (0)