From: "Hal E. Fulton" Date: 2001-12-31T13:30:20+09:00 Subject: [ruby-talk:29803] Re: Proc.class vs yield ----- Original Message ----- From: Michael Lucas-Smith To: ruby-talk ML Sent: Sunday, December 30, 2001 9:46 PM Subject: [ruby-talk:29797] Re: Proc.class vs yield > >So typically you'd see: > > > > def my_method(arg1, arg2, &block) > > ... > > end > > > >I'm not sure what you want to do in your example.... What are you > >expecting &a and &b to be? > > > Two proc's. It seems that I can't pass two procs to a method unless the > calling method is horribly ugly. You can pass a proc just like any other object (without the ampersand)... the & notation grabs the block that is specified with the method call, and (as they said in _Highlander_) there can be only one. But as ordinary parameters, you can pass any number of Proc objects... Hal Fulton