Account for the fact that ruby 1.8 returns strings from the local_variables method.

This commit is contained in:
Chris Eppstein 2012-01-30 21:26:57 -08:00
parent ff51850b90
commit cef86e2bbc

View File

@ -24,7 +24,7 @@ module Compass
eval(contents, bind, filename)
local_vars_set = eval("local_variables", bind)
local_vars_set.each do |local_var|
if (ATTRIBUTES+ARRAY_ATTRIBUTES).include?(local_var)
if (ATTRIBUTES+ARRAY_ATTRIBUTES).include?(local_var.to_sym)
value = eval(local_var.to_s, bind)
value = value.to_s if value.is_a?(Pathname)
self.send("#{local_var}=", value)