Skip to content

Instantly share code, notes, and snippets.

@seabre
Created March 28, 2012 17:46
Show Gist options
  • Save seabre/2228652 to your computer and use it in GitHub Desktop.
Save seabre/2228652 to your computer and use it in GitHub Desktop.
Weird Number Binary Thing in Ruby
> 5[0]
=> 1
> 5[1]
=> 0
> 5[2]
=> 1
> 5[3]
=> 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment