[Nitro] cookie.rb ?

Aleksi Niemela Aleksi.Niemela at cs.helsinki.fi
Tue Nov 15 17:35:14 EST 2005


guillaume pierronnet wrote:

>this is a boolean "and"
>
>this expression is equivalent:
>
>if t
>  @expires = t.is_a?(Time) ? t.httpdate : t.to_s
>end
>
>  
>
Sure but as you can see it's a bit hard to reset expiration by assigning 
nil. Haven't read the code to see if there's other way around. In case 
nil is not expected value of the parameter checking it instead of 
failing through raising an exception is not common way in Ruby world. 
Then again, this is Nitro-world where plenty of things work under plenty 
of useful assumptions making coding much easier.

    - Aleksi




More information about the Nitro-general mailing list