DOKK / manpages / debian 10 / libhtml-widgets-navmenu-perl / HTML::Widgets::NavMenu::Predicate.3pm.en
HTML::Widgets::NavMenu::Predicate(3pm) User Contributed Perl Documentation HTML::Widgets::NavMenu::Predicate(3pm)

HTML::Widgets::NavMenu::Predicate - a predicate object for HTML::Widgets::NavMenu

    my $pred = HTML::Widgets::NavMenu::Predicate->new('spec' => $spec);

Creates a new object.

$pred->evaluate( 'path_info' => $path_info, 'current_host' => $current_host )

Evaluates the predicate in the context of $path_info and $current_host and returns the result.

The type of the predicate.

Sets/gets the boolean value in case the type is a boolean.

Sets/gets the callback in case the type is callback.

Sets/gets the regular expression in case the type is "regexp".

Copyright 2006 Shlomi Fish, all rights reserved.

This program is released under the following license: MIT X11.

2015-07-04 perl v5.20.2