each_byte() public

Passes each byte in str to the given block.

"hello".each_byte {|c| print c, ' ' }

produces:

104 101 108 108 111
Show source
Register or log in to add new notes.