Chris Carter wrote: > On 2/9/07, Luke Ivers <technodolt / gmail.com> wrote: >> >> (And I also tried searching on ruby-forum.org for &:... it returns >> "Application Error") >> >> Thanks. >> > Hi Luke, > The &: syntax is the famous Symbol#to_proc hack. The & operator calls > #to_proc on the object it is connected to, in this case a Symbol. > This isn't in Ruby core, but it is in Rails, and a bunch of extension > frameworks. Essentially it takes the first argument passed to it, and > runs the method that was passed in symbol form. > > http://sn.oplo.ws/index.php?title=Symbol#to_proc Wow. I just had one of those moments where a minor little thing causes a gigantic shift in my perceptions. That is just freakin cool! -- Posted via http://www.ruby-forum.com/.