Hi --

On Fri, 8 Dec 2006, Paul Lutus wrote:

> For a given object, to display a sorted list of the methods available to it,
> do this:
>
> puts (object).methods.sort.join("\n")

You don't need to do the join("\n") -- puts will puts each item in
turn.


David

-- 
                   David A. Black | dblack / wobblini.net
Author of "Ruby for Rails"   [1] | Ruby/Rails training & consultancy [3]
DABlog (DAB's Weblog)        [2] | Co-director, Ruby Central, Inc.   [4]
[1] http://www.manning.com/black | [3] http://www.rubypowerandlight.com
[2] http://dablog.rubypal.com    | [4] http://www.rubycentral.org