Merge pull request #4283 from lest/fix-singleton-checking

use correct variant of checking whether class is a singleton
This commit is contained in:
Aaron Patterson 2012-01-03 13:10:11 -08:00
commit d1230a8cd0
1 changed files with 1 additions and 1 deletions

View File

@ -110,6 +110,6 @@ class Class
private
def singleton_class?
!name || '' == name
ancestors.first != self
end
end