Created
January 9, 2013 23:33
-
-
Save jpoz/4498021 to your computer and use it in GitHub Desktop.
WTF Ruby
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
irb(main):021:0> m | |
=> "message" | |
irb(main):022:0> m.byteslice(0) | |
=> "s" | |
irb(main):023:0> "message".byteslice(0) | |
=> "m" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment