NAME
Lang::Tree::Builder::Scalar - simple class representing a scalar.
SYNOPSIS
my $scalar = new Lang::Tree::Builder::Scalar();
$scalar->is_scalar == 1; # true
$scalar->name eq 'scalar'; # true
$scalar->lastpart eq 'scalar'; # true
This class is polymorphic with Lang::Tree::Builder::Class
and represents a simple scalar in a way that is convenient for the templates.
new
Creates a new instance of a scalar. This is called via Lang::Tree::Builder::Class::new
and so is effectively a singleton.
is_scalar
Returns true.
is_substantial
Returns false.
name
Returns scalar
.
lastpart
Returns scalar
.