Newbie question re: variable assignment

#Just to show one more way to do it (probably not the best
#depending on your usage), the following works:

···

Jacob Fugal [mailto:lukfugl@gmail.com] wrote:

#
# "0123456789".each_byte { |c| puts c }

indeed. better. much closer to ascii concept :slight_smile:

kind regards -botp

#
#Don't want to type "0123456789"? Try:
#
# (0..9).to_a.join.each_byte { |c| puts c }
#
#Like I said, roundabout and not very efficient. But,
#nonetheless, another "valid" approach :slight_smile:
#
#Jacob Fugal
#