Created
February 11, 2013 19:59
-
-
Save jugyo/4757109 to your computer and use it in GitHub Desktop.
This file contains 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
class Array | |
def u | |
pack('U*') | |
end | |
end | |
class Fixnum | |
def u | |
[self].pack('U*') | |
end | |
end | |
class String | |
def u | |
unpack( "U*" ) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment