Shlomi Fish > HTML-Widgets-NavMenu-1.0702 > HTML::Widgets::NavMenu::Predicate

Download:
HTML-Widgets-NavMenu-1.0702.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

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

SYNOPSIS ^

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

FUNCTIONS ^

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.

$pred->type()

The type of the predicate.

$pred->bool()

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

$pred->callback()

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

$pred->regexp()

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

COPYRIGHT & LICENSE ^

Copyright 2006 Shlomi Fish, all rights reserved.

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

syntax highlighting: