def
test_block
x
puts
x
yield
(
x
*
2
)
end
test_block
(
3
)
{
|
a
|
puts
a
}
test_block
3
do
|
a
|
puts
a
end