From 5fb8570f1bf22a347a746cfdf235df8a8f58b5a3 Mon Sep 17 00:00:00 2001 From: nex3 Date: Thu, 19 Jul 2007 05:22:44 +0000 Subject: [PATCH] Removing use of String#first, which is only defined in ActiveSupport. Thanks to manveru. git-svn-id: svn://hamptoncatlin.com/haml/trunk@570 7063305b-7217-0410-af8c-cdc13e5119b9 --- lib/haml/engine.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/haml/engine.rb b/lib/haml/engine.rb index c6508442..175564f3 100644 --- a/lib/haml/engine.rb +++ b/lib/haml/engine.rb @@ -728,7 +728,7 @@ END when '=', '~' parse = true - if value.first == '=' + if value[0] == ?= value = value[1..-1].strip.dump.gsub('\\#', '#') end end