ruby-changes:49950
From: k0kubun <ko1@a...>
Date: Sat, 27 Jan 2018 13:14:33 +0900 (JST)
Subject: [ruby-changes:49950] k0kubun:r62068 (trunk): bare_instructions.rb: show class name on inspect
k0kubun 2018-01-27 13:14:29 +0900 (Sat, 27 Jan 2018) New Revision: 62068 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62068 Log: 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. Modified files: trunk/tool/ruby_vm/models/bare_instructions.rb Index: tool/ruby_vm/models/bare_instructions.rb =================================================================== --- tool/ruby_vm/models/bare_instructions.rb (revision 62067) +++ tool/ruby_vm/models/bare_instructions.rb (revision 62068) @@ -115,7 +115,7 @@ class RubyVM::BareInstructions https://github.com/ruby/ruby/blob/trunk/tool/ruby_vm/models/bare_instructions.rb#L115 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/