summaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
authoryui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-31 06:24:19 (GMT)
committeryui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-31 06:24:19 (GMT)
commitd4a6aaa1e003264e4a71279daf9ce527486fca82 (patch)
treed93df84f761cc0122de75e27b9fb500267066d98 /ast.c
parent46463af983aee8b3e17635e796140c24a0469859 (diff)
Undef RubyVM::AST::Node.new
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ast.c b/ast.c
index f6af7ce..114aea4 100644
--- a/ast.c
+++ b/ast.c
@@ -483,6 +483,7 @@ Init_ast(void)
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);