method

each_byte

v1_8_7_72 - Show latest stable - Class: String
each_byte()
public

Passes each byte in str to the given block.

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

produces:

   104 101 108 108 111