Read the document by package : ri « Language Basics « Ruby






Read the document by package


Puts method of interest is part of the IO package
request that documentation by entering ri IO#puts at the command line:


C:\rubydev>ri IO#puts
---------------------------------------------------------------- IO#puts
     ios.puts(obj, ...)    => nil
------------------------------------------------------------------------
     Writes the given objects to _ios_ as with +IO#print+. Writes a
     record separator (typically a newline) after any that do not
     already end with a newline sequence. If called with an array

 








Related examples in the same category

1.use the ri tool: read the document
2.For more information on Hash, type this at a command line:
3.For information on a class method, type at a command line:
4.For more information on an instance method, type something like: