fork(10) download
  1. def metodo(exec)
  2. exec.call "Vinicius"
  3. end
  4. codigo = proc do |nome|
  5. puts "Ola, #{nome}"
  6. end
  7. metodo(codigo)
Success #stdin #stdout 0.01s 7416KB
stdin
Standard input is empty
stdout
Ola, Vinicius