M
Mido Peace
hey !!
I'm newbie in Ruby ,
Actually , I wanna call some C methods and Structure from Ruby , But
Still dont knw how to do
in C ...
int VALUE my_str_new(VALUE arg)
{
my_struct *str =init_Struct(arg) ;
return *str ;
}
...?!
I dont know how to tell Ruby about my C struct and its methods( or
create equivalent struct (keeping the C methods ) in Ruby)
Thx
I'm newbie in Ruby ,
Actually , I wanna call some C methods and Structure from Ruby , But
Still dont knw how to do
in C ...
int VALUE my_str_new(VALUE arg)
{
my_struct *str =init_Struct(arg) ;
return *str ;
}
...?!
I dont know how to tell Ruby about my C struct and its methods( or
create equivalent struct (keeping the C methods ) in Ruby)
Thx