JavaScript::Code::Type - A JavaScript Type


JavaScript-Code documentation  | view source Contained in the JavaScript-Code distribution.

Index


NAME

Top

JavaScript::Code::Type - A JavaScript Type

SYNOPSIS

Top

    #!/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

Top

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

Top

JavaScript::Code

AUTHOR

Top

Sascha Kiefer, esskar@cpan.org

LICENSE

Top

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


JavaScript-Code documentation  | view source Contained in the JavaScript-Code distribution.