Search code examples
rubyconsole

Reset IRB Console


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.


Solution

  • Type

    exec($0)
    

    in your irb console session.