lib/dockdev/context.rb in dockdev-0.3.5 vs lib/dockdev/context.rb in dockdev-0.3.6
- old
+ new
@@ -13,15 +13,14 @@
def register(name, cls)
@ctx[name] = cls
end
def get_context(path)
- ctx = nil
+ ctx = []
@ctx.values.each do |v|
vv = v.init_path(path)
if vv.is_context?
- ctx = vv
- break
+ ctx << vv
end
end
ctx
end