lib/application.rb
# executes the code written on the prompt when the user validates it with return
executes the code written on the prompt when the user validates it with return
executes the code written on the prompt when the user validates it with return
def perform_action(command)
    command||=@prompt.to_s
    current_line_number = @line_num
    if command.strip.empty?
      write_prompt
      return
    end
    new_command_div
    write_command command 
    @line_num += command.count("\n")+1
    @history.push(command)
    @pos_in_history = @history.length
    begin_edition
    @eval_thread.send_command(current_line_number, command)
  end
def perform_action ( command ) command ||= @prompt . to_s current_line_number = @line_num if command . strip . empty? write_prompt return end new_command_div write_command command @line_num += command . count ( "\n" ) + 1 @history . push ( command ) @pos_in_history = @history . length begin_edition @eval_thread . send_command ( current_line_number , command ) end
executes the code written on the prompt when the user validates it with return
executes the code written on the prompt when the user validates it with return
#put it into the top view # the code is sent to an other thread that will do the evaluation # the user must not be able to modify the prompt until the command ends # (when back_from_eval is called)
command
<not_specific>