riで複数個
ri printと入力したら、たくさんあるよといわれてしまいました。
>ri print More than one method matched your request. You can refine your search by asking for information on one of: CGI#print, IO#print, IO#printf, Kernel#print, Kernel#printf, Kernel#sprintf, StringIO#print, StringIO#printf, Zlib::GzipWriter#print, Zlib::GzipWriter#printf
明示的に指定しないといけないのですね。
>ri Kernel#print ----------------------------------------------------------- Kernel#print print(obj, ...) => nil ------------------------------------------------------------------------ Prints each object in turn to +$stdout+. If the output field separator (+$,+) is not +nil+, its contents will appear between each field. If the output record separator (+$\+) is not +nil+, it will be appended to the output. If no arguments are given, prints +$_+. Objects that aren't strings will be converted by calling their +to_s+ method. print "cat", [1,2,3], 99, "\n" $, = ", " $\ = "\n" print "cat", [1,2,3], 99 _produces:_ cat12399 cat, 1, 2, 3, 99