mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 00:54:01 +02:00
* object.c: Object#initialize accepts any number of arguments [ruby-core:27080]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a3528390c0
commit
f59ba093fa
2 changed files with 14 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Dec 21 08:15:31 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
|
||||
|
||||
* object.c: Object#initialize accepts any number of arguments
|
||||
[ruby-core:27080]
|
||||
|
||||
Sun Dec 20 23:43:46 2009 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
|
||||
|
||||
* lib/net/http.rb (HTTPGenericRequest#send_request_with_body_stream):
|
||||
|
|
10
object.c
10
object.c
|
@ -650,6 +650,14 @@ rb_obj_tap(obj)
|
|||
* end
|
||||
*/
|
||||
|
||||
/*
|
||||
* Document-method: initialize
|
||||
*
|
||||
* call-seq:
|
||||
* Object.new( *args )
|
||||
*
|
||||
* Returns a new Object. Arguments are ignored.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Not documented
|
||||
|
@ -2718,7 +2726,7 @@ Init_Object()
|
|||
rb_mKernel = rb_define_module("Kernel");
|
||||
rb_include_module(rb_cObject, rb_mKernel);
|
||||
rb_define_alloc_func(rb_cObject, rb_class_allocate_instance);
|
||||
rb_define_private_method(rb_cObject, "initialize", rb_obj_dummy, 0);
|
||||
rb_define_private_method(rb_cObject, "initialize", rb_obj_dummy, -1);
|
||||
rb_define_private_method(rb_cClass, "inherited", rb_obj_dummy, 1);
|
||||
rb_define_private_method(rb_cModule, "included", rb_obj_dummy, 1);
|
||||
rb_define_private_method(rb_cModule, "extended", rb_obj_dummy, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue