1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

rr_define_class() already marks the ruby new() method private.

This commit is contained in:
Charles Lowell 2010-06-07 10:19:15 +03:00
parent b9a3aba004
commit 388013f92e

View file

@ -31,5 +31,4 @@ void rr_init_script() {
rr_define_singleton_method(ScriptClass, "New", New, 2);
rr_define_singleton_method(ScriptClass, "Compile", Compile, 2);
rr_define_method(ScriptClass, "Run", Run, 0);
rb_funcall(ScriptClass, rb_intern("private_class_method"), 1, rb_str_new2("new"));
}