Added: 1 year ago
From: bigbold2
Views: 1,541
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (2)

Sign In or Sign Up now to post a comment!
  • One recommendaton -- make it a habit to invoke your Ruby scripts with the »-w« option, like so:

    ruby -w testscript.rb

    This way you won't miss any suggestions or warning the Ruby interpreter might have for your script, e.g. ambivalent syntax (which happens in some situations where whitespace and/ or missing parens are involved).

    Alternatively, you can prepend a so-called »shebang« as the first line in your Ruby scripts and add the »-w« switch there (i.e. #!/usr/bin/ruby -w).

  • @virumoz I'm not really into running with warnings personally, but thanks for sharing that as some people will find it useful/interesting.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more