str.each_codepoint {|integer| block } â str
str.each_codepoint â an_enumerator
str.each_codepoint â an_enumerator
Instance Public methods
Passes the Integer
ordinal of each character in str,
also known as a codepoint when applied to Unicode strings to the
given block.
If no block is given, an enumerator is returned instead.
"hello\u0639".each_codepoint {|c| print c, ' ' }
produces:
104 101 108 108 111 1593
Please login to continue.