Reset IRB Console

前端 未结 2 1454
失恋的感觉
失恋的感觉 2020-12-29 11:27

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\",

相关标签:
2条回答
  • 2020-12-29 12:20

    i am using fedora 16, exec $0 do not work for me. but i found the the way below:

    CTRL+L or system("clear") or system("reset")

    0 讨论(0)
  • 2020-12-29 12:22

    Type

    exec($0)
    

    in your irb console session.

    0 讨论(0)
提交回复
热议问题