源代码
#!/usr/bin/ruby def test(&block) block.call end test { puts "Hello World!"}
运行结果