J
Joe Van Dyk
def foo
yield
end
foo do
puts "hey"
end
What's the correct description of what is going on there? I've got a
function foo. No arguments, right? Does it "take a block"? I know
it gives control to the block, but I'm not sure of the correct
terminology to use.
Joe
yield
end
foo do
puts "hey"
end
What's the correct description of what is going on there? I've got a
function foo. No arguments, right? Does it "take a block"? I know
it gives control to the block, but I'm not sure of the correct
terminology to use.
Joe