I’ve done some googling, some looking in the pickaxe(2) book (using the
index), and some experimenting in irb, but I can’t readily see the
between puts and write (except that write doesn’t work in all cases in
irb(main):044:0> write “\nmorF\n\n”
NoMethodError: undefined method `write’ for main:Object
So what is the difference (specifically for the case of writing to a
and/or when should I use one vs. the other?