NAME

Top Close Open

Template:TT3::Element::Number - element representing number tokens

DESCRIPTION

Top Close Open

This module implements a thin subclass of Template::TT3::Element::Literal to represent numbers.

METHODS

Top Close Open

This module implements the following methods in addition to those inherited from the Template::TT3::Element::Literal , Template::TT3::Element , Template::TT3::Base and Badger::Base base classes.

parse_expr($token, $scope, $precedence)

Top Close Open

This method is called when a number element appears at the start of an expression. It advances the element referenced by the $token pointer and then calls the parse_infix() method on the next non-whitespace token.

number()

Top Close Open

An alias to the value() method inherited from Template::TT3::Element::Literal .

AUTHOR

Top Close Open

Andy Wardley http://wardley.org

COPYRIGHT

Top Close Open

Copyright (C) 1996-2009 Andy Wardley. All Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Top Close Open

This module inherits methods from the Template::TT3::Element::Literal , Template::TT3::Element , Template::TT3::Base and Badger::Base base classes.

It is constructed using the Template::TT3::Class::Element class metaprogramming module.


http://tt3.template-toolkit.org/docs/Template/TT3/Element/Number.pm last modified 2009-12-21 20:12:25