From: John Joyce Date: 2007-03-17T17:25:57+09:00 Subject: Re: yield Bertram, some code is not supposed to work. It is hypothetical, or it is a snippet or the whole thing. This thread is about structural and conceptual examples of "code blocks" in Ruby, not actual working code. though, some working code might make it more clear for some people, it is in the pickaxe book On Mar 17, 2007, at 2:38 PM, Bertram Scharpf wrote: > Am Samstag, 17. M�r 2007, 07:10:26 +0900 schrieb Corey Konrad: >> def printer(arg) >> yield arg >> end >> >> printer("ball") >> printer {|word| puts word} > > How did you get this working? Both `printer' calls will > fail. Please run your code before you post it or at least > include the error message. > > Please don't mind, > > Bertram > > > -- > Bertram Scharpf > Stuttgart, Deutschland/Germany > http://www.bertram-scharpf.de >