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.
… [ruby-core:46744] [Bug #6791].
This issue is fixed in upper stream as issue #142. (flori/json#142)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 theKernel#singleton_class
getter method.This pull request has a corresponding issue on Ruby Issue Tracking System: https://bugs.ruby-lang.org/issues/6682