MozRepl::Plugin::Repl::Util::DocFor - Variable information.
version 0.01
use MozRepl; use Data::Dump qw(dump); my $repl = MozRepl->new; $repl->setup({ plugins => { plugins => [qw/Repl::Util::DocFor/] } }); my $doc = $repl->repl_doc_for({ source => 'document.getElementById' }); print dump $doc;
Add repl_doc_for() method to MozRepl.
Return variable information as hash reference.
If variable is function, then may be return value within correct arguments list. (Depend on whether toSource() return value is complete function definition or not.)
If variable is DOM Node, then return value within nodename value.
If variable has "doc" property, then return value within doc value.
Context object. See MozRepl.
Hash reference.
JavaScript variable or value.
Return constant value, "repl_doc_for". Used by method name adding method to MozRepl object.
Toru Yamaguchi, <zigorou@cpan.org>
<zigorou@cpan.org>
Please report any bugs or feature requests to bug-mozrepl-plugin-repl-util-docfor@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-mozrepl-plugin-repl-util-docfor@rt.cpan.org
Copyright 2007 Toru Yamaguchi, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install MozRepl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MozRepl
CPAN shell
perl -MCPAN -e shell install MozRepl
For more information on module installation, please visit the detailed CPAN module installation guide.