From: Malte Milatz Date: 2005-12-03T04:32:31+09:00 Subject: Re: Make a symbol represent a method? Chris Irish: > Also, the entirely realistic reasoning for using symbols: If you are going > to refer to a method name, use a symbol. Because by defining the method, > the symbol exists anyway. > > Can someone show me an example of this? Is this referring to the method > of a class? irb> def my_cool_method; end => nil irb> Symbol.all_symbols.collect { |s| s.to_s }.grep /cool/ => ["my_cool_method"] Malte