On 13 March 2013 20:19, Love U Ruby <lists / ruby-forum.com> wrote:

> Hans Mackowiak wrote in post #1101365:
> > :false and :true a both resolved as True in an if cause ...
> > only nil and false itself are treated as false,
> > [],"",{},0,0.0 and others are true too
>
>
> yes @hans thanks for you help. I know these.
>
> But my question was that - In advance is it possible to test if a method
> take as its argument symbol or not?
>

Only by reading the documentation.  ri is a good start.

-- 
  Matthew Kerwin, B.Sc (CompSci) (Hons)
  http://matthew.kerwin.net.au/