published under license Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)copy! share!
posted in category Software Development & Programming / Ruby
posted at 24. Aug '21
Irb Bring Back Seeing Variable Value After Assign
IRB
won’t echo the variable value since 2.7.2. Add this to or create a new file ~/.irbrc
. I don’t like it and when debugging in production, I learned to add ;nil
to .each
and in development it’s useful.
IRB.conf[:ECHO_ON_ASSIGNMENT] = true
Add Comment