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:
parent
479bd52af8
commit
dc6efd387f
1 changed files with 0 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue