# File lib/pry-doc/pry_ext/method_info.rb, line 20 def aliases(meth) owner = meth.owner name = meth.name (owner.instance_methods + owner.private_instance_methods).uniq.map do |m| aliased_method = owner.__send__(:instance_method, m) next unless aliased_method == owner.__send__(:instance_method, name) next if m == name aliased_method end.compact! end