Skip to main content

escape_ruby_single

Function escape_ruby_single 

Source
pub fn escape_ruby_single(s: &str) -> String
Expand description

Escape a string for embedding in a single-quoted Ruby string literal. Single-quoted Ruby strings only interpret \\ and \'.