[ruby/singleton] Make compatible with Ruby 2.4

https://github.com/ruby/singleton/commit/0a77bb492d
This commit is contained in:
rm155 2021-11-08 13:59:38 -05:00 committed by Hiroshi SHIBATA
parent 2f53c9fc62
commit 0f00544984
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2

View File

@ -156,7 +156,7 @@ module Singleton
def self.extended(c)
# extending an object with Singleton is a bad idea
c.singleton_class.undef_method :extend_object
c.singleton_class.send(:undef_method, :extend_object)
end
def __init__(klass) # :nodoc: