From: Sean Chittenden Date: 2002-05-14T04:55:06+09:00 Subject: Re: rb_define_variable for instance variables? > Is there a way to have a shared instance variable like those defined > by rb_define_variable? Where would I find the documentation on > that? An instance variable in C is two methods. In your Init() method, you'd define two methods, a get and set method. From mod_ruby: rb_define_method(rb_cApacheRequest, "cache_resp", request_get_cache_resp, 0); rb_define_method(rb_cApacheRequest, "cache_resp=", request_set_cache_resp, 1); That help? -sc -- Sean Chittenden