[Nitro] Undefined method 'is' in session.rb

Michael Fellinger m.fellinger at gmail.com
Wed Dec 21 13:42:52 EST 2005


You have to give it some property before, since this class is not enchanted 
with Og yet and so the keyword is not interpreted.

class Session < Hash
property :foo, String
is Expirable
end

should work
but, let me warn you - i have no idea if a (class Session < Hash) works as 
expected...

Am Mittwoch, 21. Dezember 2005 19:12 schrieb James Britt:
> I updated Nitro, and I just tried running a Nitro app under CGI on a
> WinXP box, and I get an exception in session.rb.
>
> c:/ruby/lib/ruby/gems/1.8/gems/nitro-0.26.0/lib/nitro/session.rb:30:
> undefined method `is' for Nitro::Session:Class (NoMethodError)
>
> This is line 29/30:
>
> class Session < Hash
>    is Expirable
>
>
>
> Where is 'is' defined?
>
>
>
> Thanks,
>
>
> James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/nitro-general/attachments/20051221/3e5cebb6/attachment.bin 


More information about the Nitro-general mailing list