class WebConsole::Session
def from(storage)
Can return nil, if no binding or exception have been preserved in the
:__web_console_binding and the exception in :__web_console_exception.
The storage is expected to respond to #[]. The binding is expected in
Create a Session from an binding or exception in a storage.
def from(storage) if exc = storage[:__web_console_exception] new(ExceptionMapper.follow(exc)) elsif binding = storage[:__web_console_binding] new([[binding]]) end end