[ruby/irb] Fix SourceFinder's constant evaluation issue (https://github.com/ruby/irb/pull/869)
Currently, if the signature's constant part is not defined, a NameError would be raised.
irb(main):001> show_source Foo (eval):1:in `<top (required)>': uninitialized constant Foo (NameError) Foo ^^^ from (irb):1:in `<main>'
This commit fixes the issue and simplifies the edit command's implementation.
edit
https://github.com/ruby/irb/commit/8c16e029d1
[ruby/irb] Fix SourceFinder's constant evaluation issue
(https://github.com/ruby/irb/pull/869)
Currently, if the signature's constant part is not defined, a NameError
would be raised.
This commit fixes the issue and simplifies the
editcommand's implementation.https://github.com/ruby/irb/commit/8c16e029d1