зеркало из https://github.com/github/ruby.git
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
This commit is contained in:
Родитель
ef83b306e2
Коммит
fe18a62347
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче