[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

SafeStringValue

R. Mark Volkmann

3/11/2007 3:37:00 PM

I can't find any documentation that explains what this Ruby C
function does. Do you know?

1 Answer

Tim Hunter

3/11/2007 4:49:00 PM

0

Mark Volkmann wrote:
> I can't find any documentation that explains what this Ruby C function
> does. Do you know?
>
It's a macro in ruby.h. Looks like it a) ensures that the VALUE is a
String object (or can be converted using to_str) and b) raises an
exception if $SAFE> 0 and the string is tainted.