[ruby/singleton] Make compatible with Ruby 2.4
https://github.com/ruby/singleton/commit/0a77bb492d
This commit is contained in:
parent
2f53c9fc62
commit
0f00544984
@ -156,7 +156,7 @@ module Singleton
|
|||||||
|
|
||||||
def self.extended(c)
|
def self.extended(c)
|
||||||
# extending an object with Singleton is a bad idea
|
# 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
|
end
|
||||||
|
|
||||||
def __init__(klass) # :nodoc:
|
def __init__(klass) # :nodoc:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user