Skip to main content

is_ruby_source_safe

Function is_ruby_source_safe 

Source
pub fn is_ruby_source_safe(source: &str) -> bool
Expand description

Check whether inline Ruby source appears safe to execute.

This is a heuristic check — it may have false positives (blocking safe code) but should not have false negatives (allowing dangerous code).