ruby/lib/irb/cmd
Stan Lo cb9b885e78 [ruby/irb] Store context in RubyLex
Some background for this refactor:

1. Through a RubyLex instance's lifetime, the context passed to its methods
   should be the same.
   Given that `Context` is only initialised in `Irb#initialize`,
   this should be true.

2. When `RubyLex` is initialised, the context object should be accessible.
   This is also true in all 3 of `RubyLex.new`'s invocations.

With the above observations, we should be able to store the context in `RubyLex`
as an instance variable. And doing so will make `RubyLex`'s instance methods
easier to use and maintain.

5c8d3df2df
2023-01-14 09:19:09 +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] Formatting to header styles 2023-01-11 22:29:10 +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] Respect DLEXT to force-load debug.so 2022-12-20 09:07:54 -08: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] show_doc command should take non-string argument too 2022-12-12 17:35:48 +00:00
finish.rb [ruby/irb] Add "show_cmds" command to list all commands' 2022-12-08 19:10:23 +00:00
fork.rb [ruby/irb] Formatting to header styles 2023-01-11 22:29:10 +00:00
help.rb [ruby/irb] Formatting to header styles 2023-01-11 22:29:10 +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] Add "show_cmds" command to list all commands' 2022-12-08 19:10:23 +00:00
load.rb [ruby/irb] Formatting to header styles 2023-01-11 22:29:10 +00:00
ls.rb [ruby/irb] Add "show_cmds" command to list all commands' 2022-12-08 19:10:23 +00:00
measure.rb [ruby/irb] Add "show_cmds" command to list all commands' 2022-12-08 19:10:23 +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] Formatting to header styles 2023-01-11 22:29:10 +00:00
pushws.rb [ruby/irb] Formatting to header styles 2023-01-11 22:29:10 +00:00
show_cmds.rb [ruby/irb] Add "show_cmds" command to list all commands' 2022-12-08 19:10:23 +00:00
show_source.rb [ruby/irb] Store context in RubyLex 2023-01-14 09:19:09 +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] Formatting to header styles 2023-01-11 22:29:10 +00:00
whereami.rb [ruby/irb] Add "show_cmds" command to list all commands' 2022-12-08 19:10:23 +00:00