PATH:
opt
/
alt
/
ruby34
/
share
/
gems
/
gems
/
irb-1.14.3
/
lib
/
irb
/
command
# frozen_string_literal: true # # change-ws.rb - # by Keiju ISHITSUKA(keiju@ruby-lang.org) # require_relative "../ext/change-ws" module IRB # :stopdoc: module Command class CurrentWorkingWorkspace < Base category "Workspace" description "Show the current workspace." def execute(_arg) puts "Current workspace: #{irb_context.main}" end end class ChangeWorkspace < Base category "Workspace" description "Change the current workspace to an object." def execute(arg) if arg.empty? irb_context.change_workspace else obj = eval(arg, irb_context.workspace.binding) irb_context.change_workspace(obj) end puts "Current workspace: #{irb_context.main}" end end end # :startdoc: end
[-] subirb.rb
[edit]
[-] catch.rb
[edit]
[-] continue.rb
[edit]
[-] force_exit.rb
[edit]
[-] chws.rb
[edit]
[-] load.rb
[edit]
[-] break.rb
[edit]
[-] whereami.rb
[edit]
[-] history.rb
[edit]
[-] disable_irb.rb
[edit]
[-] irb_info.rb
[edit]
[-] show_source.rb
[edit]
[-] next.rb
[edit]
[-] delete.rb
[edit]
[-] finish.rb
[edit]
[-] step.rb
[edit]
[-] debug.rb
[edit]
[-] show_doc.rb
[edit]
[-] internal_helpers.rb
[edit]
[-] info.rb
[edit]
[-] pushws.rb
[edit]
[-] help.rb
[edit]
[-] base.rb
[edit]
[-] backtrace.rb
[edit]
[-] ls.rb
[edit]
[-] cd.rb
[edit]
[+]
..
[-] edit.rb
[edit]
[-] measure.rb
[edit]
[-] exit.rb
[edit]
[-] context.rb
[edit]