2008/4/21, Roger Pack <roger / doachristianturndaily.info>: > I wish this worked :) > > >> def a > >> end > => nil > >> a {:b => true} > SyntaxError: compile error > (irb):3: syntax error, unexpected tASSOC, expecting '}' > a {:b => true} > ^ > from (irb):3 irb(main):001:0> def a(x)end => nil irb(main):002:0> a(:b=>true) => nil irb(main):003:0> > I have no idea why it doesn't consider a hash a parameter. Precedence. Cheers robert -- use.inject do |as, often| as.you_can - without end