Fix subscriber contract failure
This commit is contained in:
parent
cee53d0f2d
commit
9d3c30ee53
|
@ -49,7 +49,7 @@ module Middleman
|
||||||
Contract Or[Symbol, ArrayOf[Symbol]], Maybe[ArrayOf[Any]], Maybe[RespondTo[:instance_exec]] => Any
|
Contract Or[Symbol, ArrayOf[Symbol]], Maybe[ArrayOf[Any]], Maybe[RespondTo[:instance_exec]] => Any
|
||||||
def execute(keys, args=[], scope=self)
|
def execute(keys, args=[], scope=self)
|
||||||
callbacks_for(keys).each { |b| scope.instance_exec(*args, &b) }
|
callbacks_for(keys).each { |b| scope.instance_exec(*args, &b) }
|
||||||
@subscribers.each { |b| scope.instance_exec(keys, *args, &b) }
|
@subscribers.each { |b| scope.instance_exec(keys, args, &b) }
|
||||||
end
|
end
|
||||||
|
|
||||||
Contract Or[Symbol, ArrayOf[Symbol]] => ::Hamster::Vector
|
Contract Or[Symbol, ArrayOf[Symbol]] => ::Hamster::Vector
|
||||||
|
|
Loading…
Reference in a new issue