summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-27 04:14:29 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-27 04:14:29 +0000
commitfe18a62347133c95242a4304840a41982e190c21 (patch)
treee61cfcca4843a855ad482612368496bf221c2876 /tool
parentef83b306e2456d005df5ac4a81c9b22126c8b6e6 (diff)
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
Diffstat (limited to 'tool')
-rw-r--r--tool/ruby_vm/models/bare_instructions.rb2
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