| 1 | package Faker::Plugin::JaJp::JargonNoun; | ||
| 2 | |||
| 3 | 2 | ▶ | use 5.018; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 2 | ▶ | use Venus::Class 'base'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 2 | base 'Faker::Plugin::JaJp'; | |
| 11 | |||
| 12 | # VERSION | ||
| 13 | |||
| 14 | 2 | our $VERSION = '1.19'; | |
| 15 | |||
| 16 | # METHODS | ||
| 17 | |||
| 18 | 6 | ▶ | sub execute { |
|
Subroutine
execute: called CC=1 SCAR=0.0
Pod
documented
| |||
| 19 | 6 | my ($self, $data) = @_; | |
| 20 | |||
| 21 | 6 | return $self->faker->random->select(data_for_jargon_noun()); | |
| 22 | } | ||
| 23 | |||
| 24 | 6 | ▶ | sub data_for_jargon_noun { |
|
Subroutine
data_for_jargon_noun: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 25 | 6 | state $jargon_noun = [ | |
| 26 | '相乗効果', | ||
| 27 | 'ウェブ対応', | ||
| 28 | 'パラダイム', | ||
| 29 | '市場', | ||
| 30 | 'パートナーシップ', | ||
| 31 | 'インフラストラクチャ', | ||
| 32 | 'プラットフォーム', | ||
| 33 | 'イニシアチブ', | ||
| 34 | 'チャンネル', | ||
| 35 | '眼球', | ||
| 36 | 'コミュニティ', | ||
| 37 | ] | ||
| 38 | } | ||
| 39 | |||
| 40 | 2 | 1; | |
| 41 | |||
| 42 | |||
| 43 | |||
| 44 | =head1 NAME | ||
| 45 | |||
| 46 | Faker::Plugin::JaJp::JargonNoun - Jargon Noun | ||
| 47 | |||
| 48 | =cut | ||
| 49 | |||
| 50 | =head1 ABSTRACT | ||
| 51 | |||
| 52 | Jargon Noun for Faker | ||
| 53 | |||
| 54 | =cut | ||
| 55 | |||
| 56 | =head1 VERSION | ||
| 57 | |||
| 58 | 1.19 | ||
| 59 | |||
| 60 | =cut | ||
| 61 | |||
| 62 | =head1 SYNOPSIS | ||
| 63 | |||
| 64 | package main; | ||
| 65 | |||
| 66 | use Faker::Plugin::JaJp::JargonNoun; | ||
| 67 | |||
| 68 | my $plugin = Faker::Plugin::JaJp::JargonNoun->new; | ||
| 69 | |||
| 70 | # bless(..., "Faker::Plugin::JaJp::JargonNoun") | ||
| 71 | |||
| 72 | =cut | ||
| 73 | |||
| 74 | =head1 DESCRIPTION | ||
| 75 | |||
| 76 | This package provides methods for generating fake data for jargon noun. | ||
| 77 | |||
| 78 | =encoding utf8 | ||
| 79 | |||
| 80 | =cut | ||
| 81 | |||
| 82 | =head1 INHERITS | ||
| 83 | |||
| 84 | This package inherits behaviors from: | ||
| 85 | |||
| 86 | L<Faker::Plugin::JaJp> | ||
| 87 | |||
| 88 | =cut | ||
| 89 | |||
| 90 | =head1 METHODS | ||
| 91 | |||
| 92 | This package provides the following methods: | ||
| 93 | |||
| 94 | =cut | ||
| 95 | |||
| 96 | =head2 execute | ||
| 97 | |||
| 98 | execute(HashRef $data) (Str) | ||
| 99 | |||
| 100 | The execute method returns a returns a random fake jargon noun. | ||
| 101 | |||
| 102 | I<Since C<1.10>> | ||
| 103 | |||
| 104 | =over 4 | ||
| 105 | |||
| 106 | =item execute example 1 | ||
| 107 | |||
| 108 | package main; | ||
| 109 | |||
| 110 | use Faker::Plugin::JaJp::JargonNoun; | ||
| 111 | |||
| 112 | my $plugin = Faker::Plugin::JaJp::JargonNoun->new; | ||
| 113 | |||
| 114 | # bless(..., "Faker::Plugin::JaJp::JargonNoun") | ||
| 115 | |||
| 116 | # my $result = $plugin->execute; | ||
| 117 | |||
| 118 | # '市場'; | ||
| 119 | |||
| 120 | # my $result = $plugin->execute; | ||
| 121 | |||
| 122 | # 'パートナーシップ'; | ||
| 123 | |||
| 124 | # my $result = $plugin->execute; | ||
| 125 | |||
| 126 | # '眼球'; | ||
| 127 | |||
| 128 | =back | ||
| 129 | |||
| 130 | =cut | ||
| 131 | |||
| 132 | =head2 new | ||
| 133 | |||
| 134 | new(HashRef $data) (Plugin) | ||
| 135 | |||
| 136 | The new method returns a new instance of the class. | ||
| 137 | |||
| 138 | I<Since C<1.10>> | ||
| 139 | |||
| 140 | =over 4 | ||
| 141 | |||
| 142 | =item new example 1 | ||
| 143 | |||
| 144 | package main; | ||
| 145 | |||
| 146 | use Faker::Plugin::JaJp::JargonNoun; | ||
| 147 | |||
| 148 | my $plugin = Faker::Plugin::JaJp::JargonNoun->new; | ||
| 149 | |||
| 150 | # bless(..., "Faker::Plugin::JaJp::JargonNoun") | ||
| 151 | |||
| 152 | =back | ||
| 153 | |||
| 154 | =cut | ||
| 155 | |||
| 156 | =head1 AUTHORS | ||
| 157 | |||
| 158 | Awncorp, C<awncorp@cpan.org> | ||
| 159 | |||
| 160 | =cut | ||
| 161 | |||
| 162 | =head1 LICENSE | ||
| 163 | |||
| 164 | Copyright (C) 2000, Al Newkirk. | ||
| 165 | |||
| 166 | This program is free software, you can redistribute it and/or modify it under | ||
| 167 | the terms of the Apache license version 2.0. | ||
| 168 | |||
| 169 | =cut | ||