Logan Capaldo wrote:
> On Tue, Dec 05, 2006 at 11:54:06PM +0900, Daniel Schierbeck wrote:
> >
> >   class Foo
> >     def bar
> >       yield
> >     rescue NoMethodError => error
> >       # mojo goes here
> >     end
> >   end
> >
> If ruby were common lisp, that could actually work. But it's not and our
> exceptions are not resuamble :).

class Foo
  def bar
    yield
  rescue NameError => method_call
    p method_call.name
  end
end 

Foo.new.bar { baz }