package Liberl::Provider;

use strict;
use warnings;

sub new {
    my $self = shift;
    my $provider = 'Liberl::Provider::' . shift;
    my @options = @_;

    my $module = $provider;
    $module =~ s!::!/!g;
    $module .= ".pm";
    require $module;
    return $provider->new(@options);
}

1;

