<=
for checking inheritance instead of ancestors.include?
RB-P1003ancestors.include?
can be upto 5x slower than using <=
operator for checking inheritance between constants.
Object.ancestors.include? Class
Object <= Class
<=
vs ancestors.include?
benchmark: fast-ruby)[https://github.com/fastruby/fast-ruby#ancestorsinclude-vs--code]