don't override singleton_class? if it already exists

This commit is contained in:
Charlie Somerville
2014-04-10 20:27:14 +10:00
parent c9acba55f1
commit 3672a16373

View File

@@ -108,8 +108,10 @@ class Class
end
end
private
def singleton_class?
ancestors.first != self
private
unless respond_to?(:singleton_class?)
def singleton_class?
ancestors.first != self
end
end
end