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,7 +28,11 @@ module Compass
end end
def register(name, *arguments) def register(name, *arguments)
ALL << Framework.new(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 end
def [](name) def [](name)