ruby-changes:51329
From: yui-knk <ko1@a...>
Date: Thu, 31 May 2018 15:24:25 +0900 (JST)
Subject: [ruby-changes:51329] yui-knk:r63535 (trunk): Undef RubyVM::AST::Node.new
yui-knk 2018-05-31 15:24:19 +0900 (Thu, 31 May 2018) New Revision: 63535 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63535 Log: Undef RubyVM::AST::Node.new Modified files: trunk/ast.c Index: ast.c =================================================================== --- ast.c (revision 63534) +++ ast.c (revision 63535) @@ -483,6 +483,7 @@ Init_ast(void) https://github.com/ruby/ruby/blob/trunk/ast.c#L483 rb_cNode = rb_define_class_under(rb_mAST, "Node", rb_cObject); rb_define_alloc_func(rb_cNode, rb_ast_node_alloc); + rb_undef_method(CLASS_OF(rb_cNode), "new"); rb_define_singleton_method(rb_mAST, "parse", rb_ast_s_parse, 1); rb_define_singleton_method(rb_mAST, "parse_file", rb_ast_s_parse_file, 1); rb_define_method(rb_cNode, "type", rb_ast_node_type, 0); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/