Allow vendored frameworks to override built-in frameworks to enable
testing and development.
This commit is contained in:
parent
51315469d8
commit
651bcc9977
@ -28,7 +28,11 @@ module Compass
|
||||
end
|
||||
|
||||
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
|
||||
|
||||
def [](name)
|
||||
|
Loading…
Reference in New Issue
Block a user