From fe18a62347133c95242a4304840a41982e190c21 Mon Sep 17 00:00:00 2001 From: k0kubun Date: Sat, 27 Jan 2018 04:14:29 +0000 Subject: bare_instructions.rb: show class name on inspect as it's helpful for debugging. I'm not sure what's the good output for RubyVM::TraceInstructions, so I left it as it is. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/ruby_vm/models/bare_instructions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tool') diff --git a/tool/ruby_vm/models/bare_instructions.rb b/tool/ruby_vm/models/bare_instructions.rb index 5ed27520ea..246222b03c 100644 --- a/tool/ruby_vm/models/bare_instructions.rb +++ b/tool/ruby_vm/models/bare_instructions.rb @@ -115,7 +115,7 @@ class RubyVM::BareInstructions end def inspect - sprintf "#<%s@%s:%d>", @name, @loc[0], @loc[1] + sprintf "#<%s %s@%s:%d>", self.class.name, @name, @loc[0], @loc[1] end private -- cgit v1.2.3