This is the C code
VALUE dateClass = rb_const_get(rb_cObject, rb_intern("Date"));
VALUE dateArguments[3];
dateArguments[0] = INT2NUM(2013);
dateArguments[1] = INT2NUM(11);
dateArguments[2] = INT2NUM(6);
rubyColumnData = rb_funcall(dateClass, rb_intern("new"), 3, 
dateArguments);



Carlo E. Prelz wrote in post #1127920:
> Subject: Instantiating Date class in Ruby C extension
>   Date: mar 19 nov 13 04:51:42 +0100
>
> Quoting Manas Dadarkar (lists / ruby-forum.com):
>
>> However doing a rb_require("date") in the init method of my Ruby C
>> extension doesn't help and I still get an error that I should not be
>> passing arguments to the new method.
>
> You might want to post the C code...
>
> Carlo

-- 
Posted via http://www.ruby-forum.com/.