From: Phrogz Date: 2007-11-13T00:10:04+09:00 Subject: Re: does Ruby has method properties On Nov 12, 12:35 am, Thilina Buddhika wrote: > In java script it is possible to something like this, > method.outputType = "string"; > > we are setting the return type of the method. Is this possible in Ruby? No, you can't *set* the return type of a method, but you can apply metadata to describe a method. For example: http://phrogz.net/RubyLibs/rdoc/classes/DescribeMethods.html