summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-06-26 14:02:03 -0400
committerJesse Luehrs <doy@tozt.net>2013-06-26 14:02:03 -0400
commit7f6fa096863e94509de9beca9bc657820af36951 (patch)
tree858ceeb83fbb0c154ce186cc856ffd62e5a7fe07
parent050e84a89a02138151608653fd1fe379a567b38e (diff)
downloadreply-7f6fa096863e94509de9beca9bc657820af36951.tar.gz
reply-7f6fa096863e94509de9beca9bc657820af36951.zip
docs
-rw-r--r--lib/Reply/Plugin.pm19
1 files changed, 18 insertions, 1 deletions
diff --git a/lib/Reply/Plugin.pm b/lib/Reply/Plugin.pm
index 5442a4f..4eca813 100644
--- a/lib/Reply/Plugin.pm
+++ b/lib/Reply/Plugin.pm
@@ -76,7 +76,24 @@ string and returns the modified line.
Compiles the string of Perl code into a coderef. Takes the line of code as a
string and a hash of extra parameters, and returns the coderef to be executed.
The default implementation uses L<Eval::Closure> to compile the given string.
-The extra parameters are passed directly to the C<eval_closure> call.
+
+The extra parameters can be anything that C<eval_closure> supports, as well as
+these additional parameters:
+
+=over 4
+
+=item package
+
+The package to use to evaluate the code within. Defaults to C<main>.
+
+=item environments
+
+A hashref of additional lexical environments to be merged with the main lexical
+environment in the C<environment> key. This allows plugins to ensure that their
+extra additions to the lexical scope remain visible, even if other plugins
+change what "the current lexical scope" means.
+
+=back
=item execute