Showing posts with label print. Show all posts
Showing posts with label print. Show all posts

Wednesday, May 21, 2008

Print without newline

use print for more control than puts.

irb(main):001:0> puts "Hello"
Hello
=> nil
irb(main):002:0> print "Hello"
Hello=> nil
irb(main):003:0>