Don't use methods not available in ruby 1.8.6

This commit is contained in:
Chris Eppstein 2009-11-23 15:16:16 -08:00
parent 67a7a37b42
commit 7f756f681a

View File

@ -28,7 +28,7 @@ module Compass
end
def register(name, *arguments)
if idx = ALL.index{|f| f.name.to_s == name.to_s}
if idx = ALL.index(self[name])
ALL[idx] = Framework.new(name, *arguments)
else
ALL << Framework.new(name, *arguments)