ruby/lib/irb/ext
Stan Lo 57ca5960ad [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

61560b99b3
2024-03-01 15:51:29 +00:00
..
change-ws.rb [ruby/irb] Restructure workspace management 2024-03-01 15:51:29 +00:00
eval_history.rb [ruby/irb] Restructure workspace management 2024-03-01 15:51:29 +00:00
loader.rb [ruby/irb] Turn on frozen literal in files 2024-02-23 10:53:53 +00:00
multi-irb.rb [ruby/irb] Turn on frozen literal in files 2024-02-23 10:53:53 +00:00
tracer.rb [ruby/irb] Turn on frozen literal in files 2024-02-23 10:53:53 +00:00
use-loader.rb [ruby/irb] Restructure workspace management 2024-03-01 15:51:29 +00:00
workspaces.rb [ruby/irb] Restructure workspace management 2024-03-01 15:51:29 +00:00