diff options
Diffstat (limited to 'lib/irb/cmd/pushws.rb')
-rw-r--r-- | lib/irb/cmd/pushws.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/irb/cmd/pushws.rb b/lib/irb/cmd/pushws.rb index 791d8f8dbb..41d2e705f1 100644 --- a/lib/irb/cmd/pushws.rb +++ b/lib/irb/cmd/pushws.rb @@ -18,12 +18,18 @@ module IRB module ExtendCommand class Workspaces < Nop + category "IRB" + description "Show workspaces." + def execute(*obj) irb_context.workspaces.collect{|ws| ws.main} end end class PushWorkspace < Workspaces + category "IRB" + description "Push an object to the workspace stack." + def execute(*obj) irb_context.push_workspace(*obj) super @@ -31,6 +37,9 @@ module IRB end class PopWorkspace < Workspaces + category "IRB" + description "Pop a workspace from the workspace stack." + def execute(*obj) irb_context.pop_workspace(*obj) super |