mirror of
https://github.com/ruby/ruby.git
synced 2025-08-25 05:55:46 +02:00

(https://github.com/ruby/irb/pull/824)
* Command is not a method
* Fix command test
* Implement non-method command name completion
* Add test for ExtendCommandBundle.def_extend_command
* Add helper method install test
* Remove spaces in command input parse
* Remove command arg unquote in help command
* Simplify Statement and handle execution in IRB::Irb
* Tweak require, const name
* Always install CommandBundle module to main object
* Remove considering local variable in command or expression check
* Remove unused method, tweak
* Remove outdated comment for help command arg
Co-authored-by: Stan Lo <stan001212@gmail.com>
---------
8fb776e379
Co-authored-by: Stan Lo <stan001212@gmail.com>
17 lines
269 B
Ruby
17 lines
269 B
Ruby
# frozen_string_literal: true
|
|
|
|
require_relative "debug"
|
|
|
|
module IRB
|
|
# :stopdoc:
|
|
|
|
module Command
|
|
class Backtrace < DebugCommand
|
|
def execute(arg)
|
|
execute_debug_command(pre_cmds: "backtrace #{arg}".rstrip)
|
|
end
|
|
end
|
|
end
|
|
|
|
# :startdoc:
|
|
end
|