Reset IRB Console

console, ruby

Solution

Type

exec($0)

in your irb console session.

Problem

How does one go about saying goodbye to all constants, objects, and the like defined in an `irb` session to return to a clean slate? By "in", I mean without manipulating subsessions.

Original source

Related problems