ruby/lib/irb/cmd
Stan Lo 2f0f95235a [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.

https://github.com/ruby/irb/commit/8c16e029d1
2024-02-13 13:36:32 +00:00
..
backtrace.rb [ruby/irb] Add "show_cmds" command to list all commands' 2022-12-08 19:10:23 +00:00
break.rb [ruby/irb] Add "show_cmds" command to list all commands' 2022-12-08 19:10:23 +00:00
catch.rb [ruby/irb] Add "show_cmds" command to list all commands' 2022-12-08 19:10:23 +00:00
chws.rb [ruby/irb] Add workspace category 2023-08-01 12:51:30 +00:00
continue.rb [ruby/irb] Add "show_cmds" command to list all commands' 2022-12-08 19:10:23 +00:00
debug.rb [ruby/irb] Debugging command warning should not be specific to the 2023-12-07 16:09:15 +00:00
delete.rb [ruby/irb] Add "show_cmds" command to list all commands' 2022-12-08 19:10:23 +00:00
edit.rb [ruby/irb] Fix SourceFinder's constant evaluation issue 2024-02-13 13:36:32 +00:00
exit.rb [ruby/irb] Refactor exit command 2024-01-06 17:15:16 +00:00
finish.rb [ruby/irb] Add "show_cmds" command to list all commands' 2022-12-08 19:10:23 +00:00
force_exit.rb [ruby/irb] Fix exit! command warning and method behavior 2024-02-12 11:28:54 +00:00
help.rb [ruby/irb] Print deprecation warning for `help` command 2023-05-18 03:28:31 +00:00
history.rb [ruby/irb] Implement `history` command 2023-12-02 04:32:04 +00:00
info.rb [ruby/irb] Add "show_cmds" command to list all commands' 2022-12-08 19:10:23 +00:00
irb_info.rb [ruby/irb] Type based completion using Prism and RBS 2023-11-08 02:46:33 +00:00
load.rb [ruby/irb] Formatting to header styles 2023-01-11 22:29:10 +00:00
ls.rb [ruby/irb] Page `ls`'s output (https://github.com/ruby/irb/pull/657) 2023-07-26 08:32:02 +00:00
measure.rb [ruby/irb] Warn and do nothing if block is passed to measure command 2023-12-13 11:06:26 +00:00
next.rb [ruby/irb] Add "show_cmds" command to list all commands' 2022-12-08 19:10:23 +00:00
nop.rb [ruby/irb] Refactor ExtendCommand::Nop 2023-06-05 19:12:16 +00:00
pushws.rb [ruby/irb] Add workspace category 2023-08-01 12:51:30 +00:00
show_cmds.rb [ruby/irb] Display aliases in help message 2023-11-26 17:07:45 +00:00
show_doc.rb [ruby/irb] Print deprecation warning for `help` command 2023-05-18 03:28:31 +00:00
show_source.rb [ruby/irb] Powerup show_source by enabling RubyVM.keep_script_lines 2024-02-12 18:38:30 +00:00
step.rb [ruby/irb] Fix step command (https://github.com/ruby/irb/pull/477) 2022-12-09 23:39:17 +00:00
subirb.rb [ruby/irb] Support seamless integration with ruby/debug 2023-08-13 18:30:34 +00:00
whereami.rb [ruby/irb] Add "show_cmds" command to list all commands' 2022-12-08 19:10:23 +00:00