Skip to content

Commit d4a6aaa

Browse files
committed
Undef RubyVM::AST::Node.new
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 46463af commit d4a6aaa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ast.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,7 @@ Init_ast(void)
483483
rb_cNode = rb_define_class_under(rb_mAST, "Node", rb_cObject);
484484

485485
rb_define_alloc_func(rb_cNode, rb_ast_node_alloc);
486+
rb_undef_method(CLASS_OF(rb_cNode), "new");
486487
rb_define_singleton_method(rb_mAST, "parse", rb_ast_s_parse, 1);
487488
rb_define_singleton_method(rb_mAST, "parse_file", rb_ast_s_parse_file, 1);
488489
rb_define_method(rb_cNode, "type", rb_ast_node_type, 0);

0 commit comments

Comments
 (0)