mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Revert "[DOC] Added Exception.exception to Exception.new [ci skip]"
This reverts commit 957825639c
.
Do not use [ci skip]!!!!
This commit is contained in:
parent
2d817e0564
commit
35a6741816
1 changed files with 2 additions and 3 deletions
5
error.c
5
error.c
|
@ -1003,8 +1003,7 @@ exc_init(VALUE exc, VALUE mesg)
|
|||
|
||||
/*
|
||||
* call-seq:
|
||||
* Exception.new(msg = nil) -> exception
|
||||
* Exception.exception(msg = nil) -> exception
|
||||
* Exception.new(msg = nil) -> exception
|
||||
*
|
||||
* Construct a new Exception object, optionally passing in
|
||||
* a message.
|
||||
|
@ -2573,7 +2572,7 @@ void
|
|||
Init_Exception(void)
|
||||
{
|
||||
rb_eException = rb_define_class("Exception", rb_cObject);
|
||||
rb_define_alias(rb_singleton_class(rb_eException), "exception", "new");
|
||||
rb_define_singleton_method(rb_eException, "exception", rb_class_new_instance, -1);
|
||||
rb_define_singleton_method(rb_eException, "to_tty?", exc_s_to_tty_p, 0);
|
||||
rb_define_method(rb_eException, "exception", exc_exception, -1);
|
||||
rb_define_method(rb_eException, "initialize", exc_initialize, -1);
|
||||
|
|
Loading…
Reference in a new issue