leonardo.pires / gmail.com wrote:
> I think that's partially true. The curly form has a higher precedence
> then the do ... end one. So, I can code:
>
> def foo(duh)
>  duh
> end
>
> def goo
>  puts yield
> end
>
> foo goo { 'bar' }
>
> In this case, goo is a argument, right?

It's evaluated and the result is the argument to foo: your code is 
equivalent to this version

foo( goo() { 'bar' } )

Kind regards

    robert