NAME

Faker::Plugin::JaJp - Ja-Jp Plugin Superclass

ABSTRACT

Fake Data Plugin Superclass (Ja-Jp)

VERSION

1.19

SYNOPSIS

package main;

use Faker::Plugin::JaJp;

my $plugin = Faker::Plugin::JaJp->new;

# bless(..., "Faker::Plugin::JaJp")

# my $result = $plugin->execute;

# ""

DESCRIPTION

This package provides a superclass for ja-jp based plugins.

INHERITS

This package inherits behaviors from:

Faker::Plugin

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::JaJp;

my $plugin = Faker::Plugin::JaJp->new;

# bless(..., "Faker::Plugin::JaJp")
new example 2
package main;

use Faker::Plugin::JaJp;

my $plugin = Faker::Plugin::JaJp->new({faker => 'ru-ru'});

# bless(..., "Faker::Plugin::JaJp")
new example 3
package main;

use Faker::Plugin::JaJp;

my $plugin = Faker::Plugin::JaJp->new({faker => ['ru-ru', 'sk-sk']});

# bless(..., "Faker::Plugin::JaJp")

FEATURES

This package provides the following features:

subclass-feature

This package is meant to be subclassed.

example 1

package Faker::Plugin::JaJp::UserHandle;

use base 'Faker::Plugin::JaJp';

sub execute {
  my ($self) = @_;

  return $self->process('@?{{person_last_name_ascii}}####');
}

package main;

use Faker;

my $faker = Faker->new('ja-jp');

# bless(..., "Faker")

my $result = $faker->user_handle;

# "\@qkudo7078"

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.