Ruby - Basic Code Snippits