On 6 aoû¹, 17:27, "Tim Pease" <tim.pe... / gmail.com> wrote:
> On 8/6/07, unbewust <yvon.thora... / gmail.com> wrote:
>
>
>
> > for m_move by example i have :
>
> > m_move(VALUE src_path, VALUE dst_dir, self)
>
> > and i want to return an RFile class object using :
>
> > rFile = rb_class_new_instance(2, <what kind of args here ???>,
> > rb_path2class("RFile"));
>
> You need an array of type VALUE (either VALUE* or VALUE[2])
>
> VALUE[2] args;
>
> args[0] = your_first_argument;
> args[1] = your_second_argument;
>
> rFile = rb_class_new_instance(2, args, rb_path2class("RFile"));
>
> Blessings,
> TwP


Ok thanks very very much !!!

I'm not too far of publishing a first alpha version of RSOXUtils for
Ruby ;-)

best,

Yvon