1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Fix Pry::Method#aliases tests on rbx -Xversion=19

This commit is contained in:
Conrad Irwin 2012-08-29 00:04:40 -07:00
parent c3c2a227db
commit 2f196c1f49

View file

@ -413,8 +413,8 @@ class Pry
name = @method.name name = @method.name
alias_list = owner.instance_methods.combination(2).select do |pair| alias_list = owner.instance_methods.combination(2).select do |pair|
owner.instance_method(pair.first) == owner.instance_method(pair.last) && pair.include?(name) &&
pair.include?(name) owner.instance_method(pair.first) == owner.instance_method(pair.last)
end.flatten end.flatten
alias_list.delete(name) alias_list.delete(name)