From: Brian Wisti Date: 2004-09-16T06:13:51+09:00 Subject: Re: Ex-Perl coders: Howz it feel to convert to Ruby? > Or in irb: > > Array.methods.sort > => ["&", "*", "+", "-", "<<", "<=>", "==", "===", "=~", "[]", "[]=", > "__id__", "__send__", "all?", "any?", "assoc", "at", "class", > "clear", > "clone", "collect", "collect!", "compact", "compact!", "concat", > "delete", > "delete_at", "delete_if", "detect", "display", "dup", "each", > "each_index", "each_with_index", "empty?", "entries", "eql?", > "equal?", > "extend", "fetch", "fill", "find", "find_all", "first", "flatten", > "flatten!", "freeze", "frozen?", "grep", "hash", "id", "include?", > "index", "indexes", "indices", "inject", "insert", "inspect", > "instance_eval", "instance_of?", "instance_variable_get", > "instance_variable_set", "instance_variables", "is_a?", "join", > "kind_of?", "last", "length", "map", "map!", "max", "member?", > "method", > "methods", "min", "nil?", "nitems", "object_id", "pack", "partition", > > "pop", "private_methods", "protected_methods", "public_methods", > "push", > "rassoc", "reject", "reject!", "replace", "respond_to?", "reverse", > "reverse!", "reverse_each", "rindex", "select", "send", "shift", > "singleton_methods", "size", "slice", "slice!", "sort", "sort!", > "sort_by", "taint", "tainted?", "to_a", "to_ary", "to_s", > "transpose", > "type", "uniq", "uniq!", "unshift", "untaint", "values_at", "zip", > "|"] > > It may not give you all the information about each method, but you > can > often get a pretty good idea from the name - if not, then you can use > ri > to figure it out. > This is one of those situations where I kinda miss Python and its ability to store and later display the docstring of a function or class when requested. One thing at a time, I suppose. -- Brian Wisti