From c4ef30d084012df1f185091fcc1015731c9fd722 Mon Sep 17 00:00:00 2001 From: hcatlin Date: Fri, 21 Jul 2006 18:05:25 +0000 Subject: [PATCH] Fixed error handling (again). git-svn-id: svn://hamptoncatlin.com/haml/trunk@9 7063305b-7217-0410-af8c-cdc13e5119b9 --- lib/haml.rb | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/haml.rb b/lib/haml.rb index 7698bdc5..60631e34 100644 --- a/lib/haml.rb +++ b/lib/haml.rb @@ -182,15 +182,10 @@ module HAML def method_missing(action, *args, &block) if action.to_s.first == "@" - result = @__base.instance_eval(action) + @__base.instance_eval(action) else - begin - result = @__base.send(action, *args, &block) - rescue - result = @__locals[action.to_s] || @__locals[action.to_sym] - end + @__locals[action.to_s] || @__locals[action.to_sym] || @__base.send(action, *args, &block) end - result end end