lib/web-repl/repl.rb
def input(options = {})
      line = Readline.readline('> ', true)
      if invalid_input?(line)
        Readline::HISTORY.pop
        input(options)
      else
        Readline::HISTORY.pop if repeat_input?(line)
        statement = line.strip
        case statement
        when "exit", "quit" then exit
        else
          evaluate(statement)
          wait_for_response(options)
        end
      end
    end
# Prompt the Ruby user for input and send that input to the browser for evaluation (blocking)
# @return [String, nil] The data that was sent to the browser, or nil if sending could not be completed
Prompt the Ruby user for input and send that input to the browser for evaluation (blocking)
Prompt the Ruby user for input and send that input to the browser for evaluation ( blocking )
def input(options = {})
      line = Readline.readline('> ', true)
      if invalid_input?(line)
        Readline::HISTORY.pop
        input(options)
      else
        Readline::HISTORY.pop if repeat_input?(line)
        statement = line.strip
        case statement
        when "exit", "quit" then exit
        else
          evaluate(statement)
          wait_for_response(options)
        end
      end
    end
def input ( options = { } ) line = Readline . readline ( '> ' , true ) if invalid_input? ( line ) Readline :: HISTORY . pop input ( options ) else Readline :: HISTORY . pop if repeat_input? ( line ) statement = line . strip case statement when "exit" , "quit" then exit else evaluate ( statement ) wait_for_response ( options ) end end end
Prompt the Ruby user for input and send that input to the browser for evaluation (blocking)
Prompt the Ruby user for input and send that input to the browser for evaluation ( blocking )
The data that was sent to the browser, or nil if sending could not be completed
The data that was sent to the browser or nil if sending could not be completed
String, nil
options