Sascha Kiefer > JavaScript-Code > JavaScript::Code::Type

Download:
JavaScript-Code-0.08.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.08   Source  

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.

syntax highlighting: