From: Rick DeNatale Date: 2007-05-23T04:06:14+09:00 Subject: Re: How to adopt "Python Style" indentation for Ruby On 5/22/07, Joel VanderWerf wrote: > This is the precedence issue: > > def foo(*) > puts "FOO" if block_given? > end > > def bar(*) > puts "BAR" if block_given? > end > > foo bar do end > foo bar { } > > __END__ > > Output: > > FOO > BAR > Fair enough, I'll file that in the "you learn something new every day" file. Actually the more I learn the better the day. I haven't run into this since my preference is to parenthesize arguments unless it's part of a DSL. So I would have coded: foo(bar) {} foo(bar) do..end or foo(bar {}) foo(bar do..end) Thanks! -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/