diff options
| author | Stan Lo <stan001212@gmail.com> | 2024-03-01 23:51:14 +0800 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-03-01 15:51:29 +0000 |
| commit | 57ca5960ad207beb0c4f2788df0e74f8cc6b7cac (patch) | |
| tree | 32e39f039b6b53a967f37ed52bd10b2b84abd36e /test/ruby/test_integer.rb | |
| parent | 162e13c884a1764e6cf6e62407e607d18f29eecc (diff) | |
[ruby/irb] Restructure workspace management
(https://github.com/ruby/irb/pull/888)
* Remove dead irb_level method
* Restructure workspace management
Currently, workspace is an attribute of IRB::Context in most use cases.
But when some workspace commands are used, like `pushws` or `popws`, a
workspace will be created and used along side with the original workspace
attribute.
This complexity is not necessary and will prevent us from expanding
multi-workspace support in the future.
So this commit introduces a @workspace_stack ivar to IRB::Context so IRB
can have a more natural way to manage workspaces.
* Fix pushws without args
* Always display workspace stack after related commands are used
https://github.com/ruby/irb/commit/61560b99b3
Diffstat (limited to 'test/ruby/test_integer.rb')
0 files changed, 0 insertions, 0 deletions
