diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-10-27 13:42:52 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-10-27 16:12:45 +0900 |
commit | 3198e7abd70bd2af977f2bb6c967e9df8f91adb0 (patch) | |
tree | 12265cda813be994c0aaa3a63c66a06f15e91354 /lib/rdoc | |
parent | acdb8933384da8fce1e8d8a96946eacfaa8897e2 (diff) |
Separate `send` into `public_send` and `__send__`
Diffstat (limited to 'lib/rdoc')
-rw-r--r-- | lib/rdoc/markup/formatter.rb | 2 | ||||
-rw-r--r-- | lib/rdoc/ri/driver.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/rdoc/markup/formatter.rb b/lib/rdoc/markup/formatter.rb index 6dff96c7d0..2bac76e838 100644 --- a/lib/rdoc/markup/formatter.rb +++ b/lib/rdoc/markup/formatter.rb @@ -156,7 +156,7 @@ class RDoc::Markup::Formatter method_name = "handle_regexp_#{name}" if respond_to? method_name then - target.text = send method_name, target + target.text = public_send method_name, target handled = true end end diff --git a/lib/rdoc/ri/driver.rb b/lib/rdoc/ri/driver.rb index 7f70904ad9..d5af47bf40 100644 --- a/lib/rdoc/ri/driver.rb +++ b/lib/rdoc/ri/driver.rb @@ -1228,7 +1228,7 @@ or the PAGER environment variable. # +cache+ indicate if it is a class or instance method. def load_method store, cache, klass, type, name - methods = store.send(cache)[klass] + methods = store.public_send(cache)[klass] return unless methods |