diff options
| author | John Hawthorn <john@hawthorn.email> | 2022-03-05 13:03:33 -0800 |
|---|---|---|
| committer | John Hawthorn <john@hawthorn.email> | 2022-03-15 08:49:53 -0700 |
| commit | d76ba1c219d9ab2cb74b4b1de2e467e085150c1b (patch) | |
| tree | 2e76097ae39469ee198fe07f0c2349690c3d269a /spec/ruby/core/integer | |
| parent | 7aabdbe837fc58bf95c4633ad9c164440ad93876 (diff) | |
Fast rb_class_inherited_p
This uses the superclass table recently introduced to implement fast
inheritance checking between classes (ex. Foo < Bar).
This is almost identical to what we do in class_search_class_ancestor
(as called by rb_obj_is_kind_of) except that we are checking both
directions: ie. both whether Foo < Bar and whether Bar < Foo.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5628
Diffstat (limited to 'spec/ruby/core/integer')
0 files changed, 0 insertions, 0 deletions
