On Mon, Apr 21, 2008 at 9:23 AM, Roger Pack <roger / doachristianturndaily.info> wrote: > >> I have no idea why it doesn't consider a hash a parameter. > > > > Precedence. > Yeah for some reason it is considering my function a block a higher > predencdence than a hash parameter. > So my next wish would be: > That ruby-core would allow us to make suggestions for how to better > their error messages :) > And also [sigh] that hashes and blocks used a different syntax, or that > the ambiguity noted could be overcome. > Cheers. > >> def a(hash) >> hash >> end => nil >> a :a => false, :b =>true => {:a=>false, :b=>true}