From 0533d9a25e8d7386cbed9098c355bdf635700312 Mon Sep 17 00:00:00 2001 From: naruse Date: Tue, 9 Jan 2018 15:47:53 +0000 Subject: grep_v is ruby 2.3 feature git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/ruby_vm/views/optinsn.inc.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tool') diff --git a/tool/ruby_vm/views/optinsn.inc.erb b/tool/ruby_vm/views/optinsn.inc.erb index 6e30078cae..1cb09d4809 100644 --- a/tool/ruby_vm/views/optinsn.inc.erb +++ b/tool/ruby_vm/views/optinsn.inc.erb @@ -59,7 +59,7 @@ rb_insn_unified_local_var_level(VALUE insn) % RubyVM::OperandsUnifications.each_group do |orig, unifs| % unifs.each do|insn| case <%= insn.bin %>: -% insn.spec.map{|(var,val)|val}.grep_v('*').each do |val| +% insn.spec.map{|(var,val)|val}.reject{|i| i == '*' }.each do |val| return <%= val %>; % break % end -- cgit v1.2.1