NAME
Faker::Plugin::EsEs - Es-Es Plugin Superclass
ABSTRACT
Fake Data Plugin Superclass (Es-Es)
VERSION
1.16
SYNOPSIS
package main;
use Faker::Plugin::EsEs;
my $plugin = Faker::Plugin::EsEs->new;
# bless(..., "Faker::Plugin::EsEs")
# my $result = $plugin->execute;
# ""
DESCRIPTION
This package provides a superclass for es-es 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::EsEs; my $plugin = Faker::Plugin::EsEs->new; # bless(..., "Faker::Plugin::EsEs")
- new example 2
-
package main; use Faker::Plugin::EsEs; my $plugin = Faker::Plugin::EsEs->new({faker => 'ru-ru'}); # bless(..., "Faker::Plugin::EsEs")
- new example 3
-
package main; use Faker::Plugin::EsEs; my $plugin = Faker::Plugin::EsEs->new({faker => ['ru-ru', 'sk-sk']}); # bless(..., "Faker::Plugin::EsEs")
FEATURES
This package provides the following features:
- subclass-feature
-
This package is meant to be subclassed.
example 1
package Faker::Plugin::EsEs::UserHandle; use base 'Faker::Plugin::EsEs'; sub execute { my ($self) = @_; return $self->process('@?{{person_last_name}}####'); } package main; use Faker; my $faker = Faker->new('es-es'); # bless(..., "Faker") my $result = $faker->user_handle; # "\@CJaimes9397"