Ruby Forum Test > simplifying the defined? api

Posted by Roger Pack (rogerdpack)
on 10.10.2007 23:09
Question.  A recent suggestion to ruby was to have all
defined?
method's return true or nil.
So my question is...does anybody ever use "defined?" for anything
besides true/false?
Thank you!
-Roger
Posted by Roger Pack (rogerdpack)
on 10.10.2007 23:15
> defined? method

wonder if a simplified defined? method would allow for
assert(defined?(a) and defined?(b))
which currently throws a syntax error, for some reason.  Anyone know 
why?