diff options
author | Nobuyoshi Nakada <[email protected]> | 2020-10-27 13:42:52 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2020-10-27 16:12:45 +0900 |
commit | 3198e7abd70bd2af977f2bb6c967e9df8f91adb0 (patch) | |
tree | 12265cda813be994c0aaa3a63c66a06f15e91354 /lib/irb/extend-command.rb | |
parent | acdb8933384da8fce1e8d8a96946eacfaa8897e2 (diff) |
Separate `send` into `public_send` and `__send__`
Diffstat (limited to 'lib/irb/extend-command.rb')
-rw-r--r-- | lib/irb/extend-command.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/irb/extend-command.rb b/lib/irb/extend-command.rb index 2f4fcfb5c6..3cd0c515f1 100644 --- a/lib/irb/extend-command.rb +++ b/lib/irb/extend-command.rb @@ -180,7 +180,7 @@ module IRB # :nodoc: end end ], nil, __FILE__, line - send :#{cmd_name}_, *opts, &b + __send__ :#{cmd_name}_, *opts, &b end ], nil, __FILE__, line else @@ -268,7 +268,7 @@ module IRB # :nodoc: def #{cmd_name}(*opts, &b) Context.module_eval {remove_method(:#{cmd_name})} require "#{load_file}" - send :#{cmd_name}, *opts, &b + __send__ :#{cmd_name}, *opts, &b end for ali in aliases alias_method ali, cmd_name @@ -291,8 +291,8 @@ module IRB # :nodoc: module_eval %[ alias_method alias_name, base_method def #{base_method}(*opts) - send :#{extend_method}, *opts - send :#{alias_name}, *opts + __send__ :#{extend_method}, *opts + __send__ :#{alias_name}, *opts end ] end @@ -307,8 +307,8 @@ module IRB # :nodoc: module_eval %[ alias_method alias_name, base_method def #{base_method}(*opts) - send :#{alias_name}, *opts - send :#{extend_method}, *opts + __send__ :#{alias_name}, *opts + __send__ :#{extend_method}, *opts end ] end |