Hi,

Am Dienstag, 02. Aug 2005, 19:09:16 +0900 schrieb Florian Frank:
> On 2005-08-02 16:26:04 +0900, EdUarDo wrote:
> > francisrammeloo / hotmail.com wrote:
> > >When should you use underscores to
> > >separate words in variable names or
> > >function definitions? Always?
> > 
> > Never, I use capital letters to separate words.
> 
> I use spaces to separate words:
> 
> class A
>   define_method('foo bar') do
>     'foo bar'
>   end
> end
> A.new.__send__ 'foo bar'

A nice idea. Using spaces instead of underscores and then
calling `__send__'.

Another underscore could be avoided by calling

  __send__( 'define method'.gsub( / /, "_")) do ...

;-)

Bertram


-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de