diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2025-11-14 10:57:18 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-11-14 03:24:42 +0000 |
| commit | e39385bf849610a58865722cdd330eff9475b00e (patch) | |
| tree | ed2e88da509f1b120bcd3950ce2da05a2e649899 /doc | |
| parent | 256b4722a0dc45ee8d675db0a30f37d32a40ea88 (diff) | |
[ruby/rubygems] Use `method_defined?` instead of `instance_methods.include?`
While the latter creates an intermediate array of all method names
including all ancestors, the former just traverse the inheritance
chain and can stop if found once.
https://github.com/ruby/rubygems/commit/b291070b3b
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions
