ruby/ruby — pull request #142 by ryoqun (2012-07-08 22:56:01+00:00)
Title: Define Class#singleton_instance

Hi, I defined a new instance method for Class. It's called `singleton_instance`. It returns the attached instance from a singleton Class. In short, it's the reversed version of the `Kernel#singleton_class` getter method.

This pull request has a corresponding issue on Ruby Issue Tracking System: https://bugs.ruby-lang.org/issues/6682