Subject: Re: Ruby C: How to convert any object type into a T_STRING?
From: Admin Tensor <admin tensor.heliohost.org>
Date: Fri, 28 Oct 2011 03:47:21 +0900
References: 389497
In-reply-to: 389497
Hi,
You can try
VALUE anyVal;
...
VALUE strVal = rb_funcall(anyVal, rb_intern("to_s"), 0);
Regards,
Bill
--
Posted via http://www.ruby-forum.com/.