Created
July 29, 2013 08:54
-
-
Save pearofducks/6103053 to your computer and use it in GitHub Desktop.
useful ruby snippets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get both ouput and result from a shellout | |
output=`ls no_existing_file` ; result=$?.success? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment