lib/irb/extend-command.rb in irb-1.4.3 vs lib/irb/extend-command.rb in irb-1.5.0
- old
+ new
@@ -115,10 +115,18 @@
:irb_kill, :Kill, "cmd/subirb",
[:kill, OVERRIDE_PRIVATE_ONLY],
],
[
+ :irb_debug, :Debug, "cmd/debug",
+ [:debug, NO_OVERRIDE],
+ ],
+ [
+ :irb_edit, :Edit, "cmd/edit",
+ [:edit, NO_OVERRIDE],
+ ],
+ [
:irb_help, :Help, "cmd/help",
[:help, NO_OVERRIDE],
],
[
@@ -159,29 +167,10 @@
return ExtendCommand.const_get(cmd_class, false)
end
nil
end
- # Installs the default irb commands:
- #
- # +irb_current_working_workspace+:: Context#main
- # +irb_change_workspace+:: Context#change_workspace
- # +irb_workspaces+:: Context#workspaces
- # +irb_push_workspace+:: Context#push_workspace
- # +irb_pop_workspace+:: Context#pop_workspace
- # +irb_load+:: #irb_load
- # +irb_require+:: #irb_require
- # +irb_source+:: IrbLoader#source_file
- # +irb+:: IRB.irb
- # +irb_jobs+:: JobManager
- # +irb_fg+:: JobManager#switch
- # +irb_kill+:: JobManager#kill
- # +irb_help+:: IRB@Command+line+options
- # +irb_info+:: #inspect
- # +irb_ls+:: Output#dump
- # +irb_measure+:: IRB::unset_measure_callback
- # +irb_show_source+:: #find_source, #show_source
- # +irb_whereami+:: Workspace#code_around_binding
+ # Installs the default irb commands.
def self.install_extend_commands
for args in @EXTEND_COMMANDS
def_extend_command(*args)
end
end