Ruby Playground - String function with Function pointer: Online Interpreter, Compiler & Editor | Sololearn