NAME

JavaScript::Code::Type - A JavaScript Type

SYNOPSIS

#!/usr/bin/perl

use strict;
use warnings;
use JavaScript::Code::Type;

my $type = JavaScript::Code::Type->new({ type => 'String' })->value("Go for it!");

print $type->output;

METHODS

JavaScript::Code::Type->new( )

$self->type( )

Returns a string that represents the underlaying type.

$self->value( $value )

Gets or sets the associated value.

$self->build( )

$self->output( )

Returns the javascript-code for that type.

SEE ALSO

JavaScript::Code

AUTHOR

Sascha Kiefer, esskar@cpan.org

LICENSE

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