diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-27 04:14:29 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-27 04:14:29 +0000 |
commit | fe18a62347133c95242a4304840a41982e190c21 (patch) | |
tree | e61cfcca4843a855ad482612368496bf221c2876 | |
parent | ef83b306e2456d005df5ac4a81c9b22126c8b6e6 (diff) | |
download | ruby-fe18a62347133c95242a4304840a41982e190c21.tar.gz |
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
-rw-r--r-- | tool/ruby_vm/models/bare_instructions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |