From: Matthew Kerwin Date: 2013-03-13T19:44:40+09:00 Subject: Re: Confusion with some Module methods. --90e6ba30950882988c04d7cc11da Content-Type: text/plain; charset=ISO-8859-1 On 13 March 2013 20:19, Love U Ruby 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/ --90e6ba30950882988c04d7cc11da Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On 1= 3 March 2013 20:19, Love U Ruby <lists@ruby-forum.com> wr= ote:
Hans Mackowiak wrote in post #1101365:
> :false and :true a both resolved as True in an if ca= use ...
> 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.=A0 ri = is a good start.

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