From: Dick Davies Date: 2004-04-28T19:13:21+09:00 Subject: Re: Learning extending ruby * Dominik Werder [0404 08:04]: > static VALUE t_init(VALUE self) > { > VALUE str = rb_str_new2("default string"); > rb_iv_set(self, "@myvar", str); > rb_define_attr(str, "myvar", 1, 1); > return self; > } > > > BTW: Is there any good doc beside the prag. prog. guide about extending ruby? Have a look at: http://www.rubygarden.org/ruby?RubyApi -- Lewis's Law of Travel: The first piece of luggage out of the chute doesn't belong to anyone, ever. Rasputin :: Jack of All Trades - Master of Nuns