Devel::PerlySense::Bookmark::Definition - A Bookmark definition


Devel-PerlySense documentation  | view source Contained in the Devel-PerlySense distribution.

Index


NAME

Top

Devel::PerlySense::Bookmark::Definition - A Bookmark definition

DESCRIPTION

Top

PROPERTIES

Top

moniker

The moniker of the Bookmark.

Default: ""

raRexText

Regexp texts to be evaled as qr definitions.

Bookmarks are matched in this order.

Default: []

rhQrRex

Hash ref with (keys: regexp texts; values: qr objects).

Default: {}

METHODS

Top

newFromConfig(moniker, rex)

Create new PerlySense::Bookmark::Definition object. Give it $moniker and parse the regex definitions in $ref (either a scalar or an array ref with scalars).

Die on errors, like if the rex definitions aren't valid Perl, or if they don't result in a qr object.

parseRex($rex)

Perl eval the $rex string to create a qr// object and return it.

Die on eval errors, or if the result isn't a qr.

aMatch(file, source)

Return a Bookmark::Match object for each time this bookmark matches a line in source.

AUTHOR

Top

Johan Lindström, <johanl[ÄT]DarSerMan.com>

BUGS

Top

Please report any bugs or feature requests to bug-devel-perlysense@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Devel-PerlySense. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

ACKNOWLEDGEMENTS

Top

COPYRIGHT & LICENSE

Top


Devel-PerlySense documentation  | view source Contained in the Devel-PerlySense distribution.