mirror of
https://github.com/ruby/ruby.git
synced 2025-08-28 15:36:16 +02:00
![]() 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.
|
||
---|---|---|
.. | ||
yamatanooroti | ||
helper.rb | ||
test_cmd.rb | ||
test_color.rb | ||
test_color_printer.rb | ||
test_completion.rb | ||
test_context.rb | ||
test_debug_cmd.rb | ||
test_history.rb | ||
test_init.rb | ||
test_input_method.rb | ||
test_option.rb | ||
test_raise_no_backtrace_exception.rb | ||
test_ruby_lex.rb | ||
test_workspace.rb |