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

[DOC] Update doc of NameError.new [ci skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kazu 2018-07-16 15:06:14 +00:00
parent 2af66d34f7
commit 400e5e332e

View file

@ -1446,9 +1446,10 @@ name_err_init_attr(VALUE exc, VALUE recv, VALUE method)
/*
* call-seq:
* NameError.new(msg [, name]) -> name_error
* NameError.new(msg [, name], receiver:) -> name_error
*
* Construct a new NameError exception. If given the <i>name</i>
* parameter may subsequently be examined using the <code>NameError.name</code>
* parameter may subsequently be examined using the <code>NameError#name</code>
* method.
*/