Skip to content

Instantly share code, notes, and snippets.

@DouweM
Created December 15, 2013 00:38
Show Gist options
  • Save DouweM/7967026 to your computer and use it in GitHub Desktop.
Save DouweM/7967026 to your computer and use it in GitHub Desktop.
% irb
ruby-1.9.3-p327 :001 > ++
ruby-1.9.3-p327 :002 > ++
ruby-1.9.3-p327 :003 > ++
ruby-1.9.3-p327 :004 > 5
=> 5
ruby-1.9.3-p327 :005 > x = 3
=> 3
ruby-1.9.3-p327 :006 > x++
ruby-1.9.3-p327 :007 > 2
=> 5
ruby-1.9.3-p327 :008 >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment