Allow vendored frameworks to override built-in frameworks to enable

testing and development.
This commit is contained in:
Chris Eppstein 2009-11-19 00:41:15 -08:00
parent 51315469d8
commit 651bcc9977

View File

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