ruby string ascii value code example Example: convert to ascii ruby "string".each_byte do |c| puts c end