1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

singleton_class? is already pressent at Ruby 2.2

This commit is contained in:
Rafael Mendonça França 2015-01-04 15:46:26 -03:00
parent 479bd52af8
commit dc6efd387f

View file

@ -116,12 +116,4 @@ class Class
attr_writer name if instance_writer
end
end
private
unless respond_to?(:singleton_class?)
def singleton_class?
ancestors.first != self
end
end
end