fny
fny

Reputation: 33517

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.

Upvotes: 12

Views: 8472

Answers (3)

Vy Do
Vy Do

Reputation: 52488

On Windows (CMD): system("cls")

Upvotes: 0

lzj509649444
lzj509649444

Reputation: 95

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")

Upvotes: 3

sunnyrjuneja
sunnyrjuneja

Reputation: 6123

Type

exec($0)

in your irb console session.

Upvotes: 41

Related Questions