mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* object.c: BasicObject#initialize accepts any number of arguments [ruby-core:27080]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4ea2a8f1d2
commit
dbf07b09fd
2 changed files with 14 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Dec 21 08:04:34 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
|
||||
|
||||
* object.c: BasicObject#initialize accepts any number of arguments
|
||||
[ruby-core:27080]
|
||||
|
||||
Mon Dec 21 02:45:46 2009 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* vm_eval.c (rb_iterate): remove SEGV (retry).
|
||||
|
|
10
object.c
10
object.c
|
@ -633,6 +633,14 @@ rb_obj_tap(VALUE obj)
|
|||
* end
|
||||
*/
|
||||
|
||||
/*
|
||||
* Document-method: initialize
|
||||
*
|
||||
* call-seq:
|
||||
* BasicObject.new( *args )
|
||||
*
|
||||
* Returns a new BasicObject. Arguments are ignored.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Not documented
|
||||
|
@ -2538,7 +2546,7 @@ Init_Object(void)
|
|||
#undef rb_intern
|
||||
#define rb_intern(str) rb_intern_const(str)
|
||||
|
||||
rb_define_private_method(rb_cBasicObject, "initialize", rb_obj_dummy, 0);
|
||||
rb_define_private_method(rb_cBasicObject, "initialize", rb_obj_dummy, -1);
|
||||
rb_define_alloc_func(rb_cBasicObject, rb_class_allocate_instance);
|
||||
rb_define_method(rb_cBasicObject, "==", rb_obj_equal, 1);
|
||||
rb_define_method(rb_cBasicObject, "equal?", rb_obj_equal, 1);
|
||||
|
|
Loading…
Reference in a new issue