class IRB::Statement::Command
def evaluable_code
def evaluable_code # Hook command-specific transformation to return valid Ruby code if @command_class.respond_to?(:transform_args) arg = @command_class.transform_args(@arg) else arg = @arg end [@command, arg].compact.join(' ') end
def initialize(code, command, arg, command_class)
def initialize(code, command, arg, command_class) @code = code @command = command @arg = arg @command_class = command_class end
def is_assignment?
def is_assignment? false end
def should_be_handled_by_debugger?
def should_be_handled_by_debugger? require_relative 'cmd/help' require_relative 'cmd/debug' IRB::ExtendCommand::DebugCommand > @command_class || IRB::ExtendCommand::Help == @command_class end
def suppresses_echo?
def suppresses_echo? false end