By daniel
via jroller.com
Published: Mar 02 2007 / 16:10
Ruby's humble gets method pauses execution to get input from the command line which makes it useful in debugging scenarios, especially when debugging loops or output from remote servers. Try using gets as a quick and easy way to pause execution while you examine some debugging content that you've output to the console with puts.
Add your comment
Voters For This Link (11)
-
daniel -
cha0sth30ry -
pate -
mrnicksgirl -
lowellheddings -
hchaudh1 -
gst -
javanperl -
notsleepy -
rubyminer -
davneter




