The c variable already contains the char code!
"string".each_byte do |c|
puts c
end
yields
115
116
114
105
110
103
The c variable already contains the char code!
"string".each_byte do |c|
puts c
end
yields
115
116
114
105
110
103