I was thinking in something like this:

```ruby
unless respond_to?(:singleton_class?)
  def singleton_class?
    ancestors.first != self
  end
  private :singleton_class?
end
```