From: Robert Klemme Date: 2011-01-20T00:09:22+09:00 Subject: Re: The most recommended way of naming methods in Ruby On Wed, Jan 19, 2011 at 3:13 PM, Shadowfirebird wrote: >> It's more relaxed since you can use any object reference as boolean >> value.  For example, you may do >> >> class X >>   attr_accessor :name >>   alias name? name >> end >> >> if the test should return a trueish value if the name is set (actually >> not nil and not false). > > What, "classname = Myclass.name?"?    Ew.  Sorry, I wouldn't be comfortable with that.  Where in the core Ruby classes does that happen? I am not sure what you are hinting at. Clarification - just in case: I did *not* redefine the class's name in the example above. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/