3 ms·
They are converted to procs and you can pass them around just like anything else. def foo(&block) puts block.class block.call end foo do 'ba
by phaedryx 7y ago
They are converted to procs and you can pass them around just like anything else.
def foo(&block)
puts block.class
block.call
end
foo do
'bar'
end