each_byte block logics : each_byte « String « Ruby
- Ruby
- String
- each_byte
each_byte block logics
#!/usr/bin/env ruby
thoreau = "If a man does not keep pace with his companions, perhaps it is because he hears a different drummer."
thoreau.each_byte do |c|
print c.chr, "/"
end
Related examples in the same category