Skip to content

Instantly share code, notes, and snippets.

@pearofducks
Created July 29, 2013 08:54
Show Gist options
  • Save pearofducks/6103053 to your computer and use it in GitHub Desktop.
Save pearofducks/6103053 to your computer and use it in GitHub Desktop.
useful ruby snippets
# 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