From: Tim Pease Date: 2007-08-07T00:27:52+09:00 Subject: Re: (C ext to Ruby) variable args count class On 8/6/07, unbewust 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, , > 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