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
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user