lib/syncem.rb in syncem-0.1.0 vs lib/syncem.rb in syncem-0.1.1
- old
+ new
@@ -38,10 +38,12 @@
end
def method_missing(*args)
@mutex.synchronize do
if @origin.respond_to?(args[0])
- @origin.send(*args)
+ @origin.send(*args) do |*a|
+ yield(*a) if block_given?
+ end
else
super
end
end
end