class

Icr::LiveSession

Inherits Reference < Object

Constants

ANSI_RE = /\e\[[0-9;?]*[A-Za-z]/
CONTINUE_RE = /icr:\d+\* *\z/
RESULT_SILENCE = 0.15
SUBMIT_DEADLINE = 30.0
SYNC_SILENCE = 0.12

steady-state silence windows; too low races the interpreter's echo

Constructors

new(bin : String, cwd : String | Nil = nil)
Source

Instance methods

alive?
Source
close
Source
history
Source
needs_continuation?
Source
program_source
Source
reset

The live interpreter cannot drop state in-place — restart it.

Source
submit(line : String) : String

Send one line (or continuation line) to the interpreter. Returns the rendered output: program stdout plus "=> value" like irb.

Source

Nested types