SafeStringValue

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

Mark V. 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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs