Toru Yamaguchi > MozRepl-0.06 > MozRepl::Plugin::Repl::Util::DocFor

Download:
MozRepl-0.06.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  9
Open  1
View/Report Bugs
Module Version: 0.01   Source  

NAME ^

MozRepl::Plugin::Repl::Util::DocFor - Variable information.

VERSION ^

version 0.01

SYNOPSIS ^

    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;

DESCRIPTION ^

Add repl_doc_for() method to MozRepl.

METHODS ^

execute($ctx, $args)

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.

$ctx

Context object. See MozRepl.

$args

Hash reference.

source

JavaScript variable or value.

method_name()

Return constant value, "repl_doc_for". Used by method name adding method to MozRepl object.

SEE ALSO ^

MozRepl::Plugin::Base
MozRepl::Plugin::Repl::Util::HelpUrlFor

AUTHOR ^

Toru Yamaguchi, <zigorou@cpan.org>

BUGS ^

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.

COPYRIGHT & LICENSE ^

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.

syntax highlighting: