Mega Code Archive

 
Categories / Ruby / Language Basics
 

Abbreviated Assignment Operators

x = 5 x = x + 1 # or the abbreviated way: x += 1