NAME
Faker::Plugin::EnUs - En-Us Plugin Superclass
ABSTRACT
Fake Data Plugin Superclass (En-Us)
VERSION
1.19
SYNOPSIS
package main;
use Faker::Plugin::EnUs;
my $plugin = Faker::Plugin::EnUs->new;
# bless(..., "Faker::Plugin::EnUs")
# my $result = $plugin->execute;
# ""
DESCRIPTION
This package provides a superclass for en-us based plugins.
INHERITS
This package inherits behaviors from:
METHODS
This package provides the following methods:
new
new(HashRef $data) (Plugin)
The new method returns a new instance of the class.
Since 1.10
- new example 1
-
package main; use Faker::Plugin::EnUs; my $plugin = Faker::Plugin::EnUs->new; # bless(..., "Faker::Plugin::EnUs")
- new example 2
-
package main; use Faker::Plugin::EnUs; my $plugin = Faker::Plugin::EnUs->new({faker => 'ru-ru'}); # bless(..., "Faker::Plugin::EnUs")
- new example 3
-
package main; use Faker::Plugin::EnUs; my $plugin = Faker::Plugin::EnUs->new({faker => ['ru-ru', 'sk-sk']}); # bless(..., "Faker::Plugin::EnUs")
FEATURES
This package provides the following features:
- subclass-feature
-
This package is meant to be subclassed.
example 1
package Faker::Plugin::EnUs::UserHandle; use base 'Faker::Plugin::EnUs'; sub execute { my ($self) = @_; return $self->process('@?{{person_last_name}}####'); } package main; use Faker; my $faker = Faker->new('en-us'); # bless(..., "Faker") my $result = $faker->user_handle; # "\@jWolf2469"
AUTHORS
Awncorp, awncorp@cpan.org
LICENSE
Copyright (C) 2000, Al Newkirk.
This program is free software, you can redistribute it and/or modify it under the terms of the Apache license version 2.0.