Class WebConsole::Session
In: lib/web_console/session.rb
Parent: Object

A session lets you persist wrap an Evaluator instance in memory associated with multiple bindings.

Each newly created session is persisted into memory and you can find it later its id.

A session may be associated with multiple bindings. This is used by the error pages only, as currently, this is the only client that needs to do that.

Methods

Attributes

id  [R]  An unique identifier for every REPL.

Public Class methods

Finds a persisted session in memory by its id.

Returns a persisted session if found in memory. Raises NotFound error unless found in memory.

Create a Session from a single binding.

Create a Session from an exception.

Public Instance methods

Evaluate input on the current Evaluator associated binding.

Returns a string of the Evaluator output.

Switches the current binding to the one at specified index.

Returns nothing.

[Validate]