提交 8b14a6b7 编写于 作者: V Vipul A M

Fix `singleton_class?`

Due to changes from http://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/39628 current `singleton_class?` implementation fails.
Changed based on reference from http://bugs.ruby-lang.org/issues/7609
上级 42a99dba
......@@ -118,7 +118,10 @@ def class_attribute(*attrs)
end
private
def singleton_class?
ancestors.first != self
unless respond_to?(:singleton_class?)
def singleton_class?
ancestors.first != self
end
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册