Modify: add new class OutvokeProcExecContext
This commit makes the following changes: - add new class OutvokeProcExecContext - add new feature "to" method - change to use instance_exec in two places These will allow you can write like following: hook("every-sec", / ..:..:.[02468]/) { to "lo" } Since loputs are already provided for the data source "lo", the above code is equivalent to writing this: hook("every-sec", / ..:..:.[02468]/) { loputs _1.body } Using instance_exec allows you to write something like `to "lo"`. OutvokeProcExecContext is a class provided only for instance_exec. Ever since the initial release of outvoke.rb (35a76256), Proc#call has simply been used to execute Proc objects registered by hook. With this commit, for the first time, a change is being made here so that instance_exec will be used. Note that the impact of this has not been fully tested. BTW, This commit is related to 7dba2139 and 9a253737.
Please register or sign in to comment