From: David Corbin Date: 2002-03-26T20:25:22+09:00 Subject: Re: Difference between 'do' and 'begin' > > >Although there *are* two 'keywords' to open a block, but those are >'do' and '{'. Both have different precedence, so that both following >lines have different meaning: > >- anyMethod1 anyMethod2 do ... end >- anyMethod1 anyMethod2 { ... } > >The first line associate the block to anyMethod1, whereas the second >invocation associate the block to the call of anyMethod2 ... > Can you give an example where you would use do...end? Thanks.