Link Details

Link 14838 thumbnail
User 107114 avatar

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.
  • 11
  • 0
  • 3335
  • 413

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (11)



Voters Against This Link (0)