diff options
author | Stan Lo <stan.lo@shopify.com> | 2022-12-07 23:29:55 +0000 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-12-07 23:30:00 +0000 |
commit | a2d3f5606a241999feda113f7331cf1a637bcaf0 (patch) | |
tree | d63c9844031404af6c8bf87378a317d1b07e4ac6 /vm.c | |
parent | 30c76f4d0d1b090a2ac4885f10f31d59d9c243df (diff) |
[ruby/irb] Lazily load the multi-irb extension
(https://github.com/ruby/irb/pull/472)
* Lazily load the multi-irb extension
We now have plan to implement a command that prints all commands'
information, which will need to load all command files without actually
running them.
But because the `multi-irb` extension patches IRB's top-level methods,
loading it would cause unintentional side-effects.
So this commit moves related requires into command execution to avoid the problem.
* Make extend_irb_context private
Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
Diffstat (limited to 'vm.c')
0 files changed, 0 insertions, 0 deletions