mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* object.c (init_copy): rename copy_object as initialize_copy,
since it works as copy constructor. * eval.c (rb_add_method): initialize_copy should always be private, like initialize. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
81882bac13
commit
6e52d10fe6
12 changed files with 61 additions and 55 deletions
4
file.c
4
file.c
|
@ -2260,7 +2260,7 @@ rb_stat_init(obj, fname)
|
|||
}
|
||||
|
||||
static VALUE
|
||||
rb_stat_copy_object(copy, orig)
|
||||
rb_stat_init_copy(copy, orig)
|
||||
VALUE copy, orig;
|
||||
{
|
||||
struct stat *nst;
|
||||
|
@ -2915,7 +2915,7 @@ Init_File()
|
|||
rb_cStat = rb_define_class_under(rb_cFile, "Stat", rb_cObject);
|
||||
rb_define_alloc_func(rb_cStat, rb_stat_s_alloc);
|
||||
rb_define_method(rb_cStat, "initialize", rb_stat_init, 1);
|
||||
rb_define_method(rb_cStat, "copy_object", rb_stat_copy_object, 1);
|
||||
rb_define_method(rb_cStat, "initialize_copy", rb_stat_init_copy, 1);
|
||||
|
||||
rb_include_module(rb_cStat, rb_mComparable);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue