def metodo(exec) exec.call "Vinicius"endcodigo = proc do |nome| puts "Ola, #{nome}"endmetodo(codigo)
Standard input is empty
Ola, Vinicius
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!