Eric Merritt <cyberlync / gmail.com> writes:

> Hello all,
>
>  I am slowly working through creating a C extension for ruby. There
> are a couple of methods that would fit more correctly in existing
> classes (specifically String and a few others). This is very easy to
> do in Ruby, however, it I can't seem to find the way to go about it in
> C. Any help would be appreciated.
I may missing something but what about
rb_define_method.

Get a handle to the String class and use rb_define_method

Regards
Friedrich

-- 
Please remove just-for-news- to reply via e-mail.