Sebastian Riedel > Mojo > MojoX::Types

Download:
Mojo-0.9002.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Source   Latest Release: Mojo-0.999913

NAME ^

MojoX::Types - Types

SYNOPSIS ^

    use MojoX::Types;

    my $types = MojoX::Types->new;

DESCRIPTION ^

MojoX::Types is a container for MIME types.

ATTRIBUTES

types

    my $map = $types->types;
    $types  = $types->types({png => 'image/png'});

METHODS ^

MojoX::Types inherits all methods from Mojo::Base and implements the follwing the ones.

type

    my $type = $types->type('png');
    $types   = $types->type(png => 'image/png');