It explicitly casts to a boolean. This isn't useful (or preferred) in
_most_ cases. In this case, nil? already returns true/false, so
there's not really a point.
On 6/22/07, Glenn Little <[EMAIL PROTECTED]> wrote:
Found this in the restful auth code:
def activated?
!! activation_code.nil?
end
What is the "!!"? "not not"? Is it a way of
doing a cast or something? (If so, why is
it needed?)
-glenn
_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby
--
Kevin Clark
http://glu.ttono.us
_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby