提交 bea38d64 编写于 作者: Y Yehuda Katz

Don't rely on @message in Error classes being available for use

上级 9fd9e5d4
......@@ -7,11 +7,8 @@ class NuclearExplosion < StandardError
end
class MadRonon < StandardError
attr_accessor :message
def initialize(message)
@message = message
super()
super(message)
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册