On Nov 12, 12:35 am, Thilina Buddhika <thilin... / gmail.com> 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