Execute Ruby code and return a string
§Arguments
input
- A &str literal containing ruby code
§Example
use macro_ruby::ruby_code_str;
let my_str = ruby_code_str!("puts hi");
assert_eq!(my_str, "hi\n");
§Note
puts
adds a trailing ‘\n’, use print
if you don’t want that