提交 a99aa3ba 编写于 作者: J Jay Hayes

Fixes typo in Object#try!

上级 82a2a78b
......@@ -47,7 +47,7 @@ def try(*a, &b)
end
# Same as #try, but will raise a NoMethodError exception if the receiving is not nil and
# does not implemented the tried method.
# does not implement the tried method.
def try!(*a, &b)
if a.empty? && block_given?
yield self
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册