Mega Code Archive

 
Categories / Ruby / Language Basics
 

Note Ruby does not have ++

x = 1 x += 1          # Increment x: note Ruby does not have ++. y -= 1          # Decrement y: no -- operator, either.