Ruby Playground - Assign function as variable - solution: Online Interpreter, Compiler & Editor | Sololearn