def f(&b)
...
b.call
...
end
def g
...
yield b
...
end
As far I understood the documentation for call and yield, both are
equivalent:
f { ... }
g { ... }
Is there a principal reason when to prefer call over yield (or vice
versa), or are these only syntactic variations of the same feature?
Ronald
--
Ronald Fischer <ronald.fischer / venyon.com>
Phone: +49-89-452133-162