class IRB::Irb
def evaluate_line(line, line_no)
def evaluate_line(line, line_no) # Transform a non-identifier alias (@, $) or keywords (next, break) command, args = line.split(/\s/, 2) if original = @context.command_aliases[command.to_sym] line = line.gsub(/\A#{Regexp.escape(command)}/, original.to_s) command = original end # Hook command-specific transformation command_class = ExtendCommandBundle.load_command(command) if command_class&.respond_to?(:transform_args) line = "#{command} #{command_class.transform_args(args)}" end @context.evaluate(line, line_no) end