| 1 | package Faker::Plugin::LoremWord; | ||
| 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'; | |
| 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_lorem_word()); | |
| 22 | } | ||
| 23 | |||
| 24 | 6 | ▶ | sub data_for_lorem_word { |
|
Subroutine
data_for_lorem_word: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 25 | 6 | state $lorem_word = [ | |
| 26 | 'alias', | ||
| 27 | 'consequatur', | ||
| 28 | 'aut', | ||
| 29 | 'perferendis', | ||
| 30 | 'sit', | ||
| 31 | 'voluptatem', | ||
| 32 | 'accusantium', | ||
| 33 | 'doloremque', | ||
| 34 | 'aperiam', | ||
| 35 | 'eaque', | ||
| 36 | 'ipsa', | ||
| 37 | 'quae', | ||
| 38 | 'ab', | ||
| 39 | 'illo', | ||
| 40 | 'inventore', | ||
| 41 | 'veritatis', | ||
| 42 | 'et', | ||
| 43 | 'quasi', | ||
| 44 | 'architecto', | ||
| 45 | 'beatae', | ||
| 46 | 'vitae', | ||
| 47 | 'dicta', | ||
| 48 | 'sunt', | ||
| 49 | 'explicabo', | ||
| 50 | 'aspernatur', | ||
| 51 | 'aut', | ||
| 52 | 'odit', | ||
| 53 | 'aut', | ||
| 54 | 'fugit', | ||
| 55 | 'sed', | ||
| 56 | 'quia', | ||
| 57 | 'consequuntur', | ||
| 58 | 'magni', | ||
| 59 | 'dolores', | ||
| 60 | 'eos', | ||
| 61 | 'qui', | ||
| 62 | 'ratione', | ||
| 63 | 'voluptatem', | ||
| 64 | 'sequi', | ||
| 65 | 'nesciunt', | ||
| 66 | 'neque', | ||
| 67 | 'dolorem', | ||
| 68 | 'ipsum', | ||
| 69 | 'quia', | ||
| 70 | 'dolor', | ||
| 71 | 'sit', | ||
| 72 | 'amet', | ||
| 73 | 'consectetur', | ||
| 74 | 'adipisci', | ||
| 75 | 'velit', | ||
| 76 | 'sed', | ||
| 77 | 'quia', | ||
| 78 | 'non', | ||
| 79 | 'numquam', | ||
| 80 | 'eius', | ||
| 81 | 'modi', | ||
| 82 | 'tempora', | ||
| 83 | 'incidunt', | ||
| 84 | 'ut', | ||
| 85 | 'labore', | ||
| 86 | 'et', | ||
| 87 | 'dolore', | ||
| 88 | 'magnam', | ||
| 89 | 'aliquam', | ||
| 90 | 'quaerat', | ||
| 91 | 'voluptatem', | ||
| 92 | 'ut', | ||
| 93 | 'enim', | ||
| 94 | 'ad', | ||
| 95 | 'minima', | ||
| 96 | 'veniam', | ||
| 97 | 'quis', | ||
| 98 | 'nostrum', | ||
| 99 | 'exercitationem', | ||
| 100 | 'ullam', | ||
| 101 | 'corporis', | ||
| 102 | 'nemo', | ||
| 103 | 'enim', | ||
| 104 | 'ipsam', | ||
| 105 | 'voluptatem', | ||
| 106 | 'quia', | ||
| 107 | 'voluptas', | ||
| 108 | 'sit', | ||
| 109 | 'suscipit', | ||
| 110 | 'laboriosam', | ||
| 111 | 'nisi', | ||
| 112 | 'ut', | ||
| 113 | 'aliquid', | ||
| 114 | 'ex', | ||
| 115 | 'ea', | ||
| 116 | 'commodi', | ||
| 117 | 'consequatur', | ||
| 118 | 'quis', | ||
| 119 | 'autem', | ||
| 120 | 'vel', | ||
| 121 | 'eum', | ||
| 122 | 'iure', | ||
| 123 | 'reprehenderit', | ||
| 124 | 'qui', | ||
| 125 | 'in', | ||
| 126 | 'ea', | ||
| 127 | 'voluptate', | ||
| 128 | 'velit', | ||
| 129 | 'esse', | ||
| 130 | 'quam', | ||
| 131 | 'nihil', | ||
| 132 | 'molestiae', | ||
| 133 | 'et', | ||
| 134 | 'iusto', | ||
| 135 | 'odio', | ||
| 136 | 'dignissimos', | ||
| 137 | 'ducimus', | ||
| 138 | 'qui', | ||
| 139 | 'blanditiis', | ||
| 140 | 'praesentium', | ||
| 141 | 'laudantium', | ||
| 142 | 'totam', | ||
| 143 | 'rem', | ||
| 144 | 'voluptatum', | ||
| 145 | 'deleniti', | ||
| 146 | 'atque', | ||
| 147 | 'corrupti', | ||
| 148 | 'quos', | ||
| 149 | 'dolores', | ||
| 150 | 'et', | ||
| 151 | 'quas', | ||
| 152 | 'molestias', | ||
| 153 | 'excepturi', | ||
| 154 | 'sint', | ||
| 155 | 'occaecati', | ||
| 156 | 'cupiditate', | ||
| 157 | 'non', | ||
| 158 | 'provident', | ||
| 159 | 'sed', | ||
| 160 | 'ut', | ||
| 161 | 'perspiciatis', | ||
| 162 | 'unde', | ||
| 163 | 'omnis', | ||
| 164 | 'iste', | ||
| 165 | 'natus', | ||
| 166 | 'error', | ||
| 167 | 'similique', | ||
| 168 | 'sunt', | ||
| 169 | 'in', | ||
| 170 | 'culpa', | ||
| 171 | 'qui', | ||
| 172 | 'officia', | ||
| 173 | 'deserunt', | ||
| 174 | 'mollitia', | ||
| 175 | 'animi', | ||
| 176 | 'id', | ||
| 177 | 'est', | ||
| 178 | 'laborum', | ||
| 179 | 'et', | ||
| 180 | 'dolorum', | ||
| 181 | 'fuga', | ||
| 182 | 'et', | ||
| 183 | 'harum', | ||
| 184 | 'quidem', | ||
| 185 | 'rerum', | ||
| 186 | 'facilis', | ||
| 187 | 'est', | ||
| 188 | 'et', | ||
| 189 | 'expedita', | ||
| 190 | 'distinctio', | ||
| 191 | 'nam', | ||
| 192 | 'libero', | ||
| 193 | 'tempore', | ||
| 194 | 'cum', | ||
| 195 | 'soluta', | ||
| 196 | 'nobis', | ||
| 197 | 'est', | ||
| 198 | 'eligendi', | ||
| 199 | 'optio', | ||
| 200 | 'cumque', | ||
| 201 | 'nihil', | ||
| 202 | 'impedit', | ||
| 203 | 'quo', | ||
| 204 | 'porro', | ||
| 205 | 'quisquam', | ||
| 206 | 'est', | ||
| 207 | 'qui', | ||
| 208 | 'minus', | ||
| 209 | 'id', | ||
| 210 | 'quod', | ||
| 211 | 'maxime', | ||
| 212 | 'placeat', | ||
| 213 | 'facere', | ||
| 214 | 'possimus', | ||
| 215 | 'omnis', | ||
| 216 | 'voluptas', | ||
| 217 | 'assumenda', | ||
| 218 | 'est', | ||
| 219 | 'omnis', | ||
| 220 | 'dolor', | ||
| 221 | 'repellendus', | ||
| 222 | 'temporibus', | ||
| 223 | 'autem', | ||
| 224 | 'quibusdam', | ||
| 225 | 'et', | ||
| 226 | 'aut', | ||
| 227 | 'consequatur', | ||
| 228 | 'vel', | ||
| 229 | 'illum', | ||
| 230 | 'qui', | ||
| 231 | 'dolorem', | ||
| 232 | 'eum', | ||
| 233 | 'fugiat', | ||
| 234 | 'quo', | ||
| 235 | 'voluptas', | ||
| 236 | 'nulla', | ||
| 237 | 'pariatur', | ||
| 238 | 'at', | ||
| 239 | 'vero', | ||
| 240 | 'eos', | ||
| 241 | 'et', | ||
| 242 | 'accusamus', | ||
| 243 | 'officiis', | ||
| 244 | 'debitis', | ||
| 245 | 'aut', | ||
| 246 | 'rerum', | ||
| 247 | 'necessitatibus', | ||
| 248 | 'saepe', | ||
| 249 | 'eveniet', | ||
| 250 | 'ut', | ||
| 251 | 'et', | ||
| 252 | 'voluptates', | ||
| 253 | 'repudiandae', | ||
| 254 | 'sint', | ||
| 255 | 'et', | ||
| 256 | 'molestiae', | ||
| 257 | 'non', | ||
| 258 | 'recusandae', | ||
| 259 | 'itaque', | ||
| 260 | 'earum', | ||
| 261 | 'rerum', | ||
| 262 | 'hic', | ||
| 263 | 'tenetur', | ||
| 264 | 'a', | ||
| 265 | 'sapiente', | ||
| 266 | 'delectus', | ||
| 267 | 'ut', | ||
| 268 | 'aut', | ||
| 269 | 'reiciendis', | ||
| 270 | 'voluptatibus', | ||
| 271 | 'maiores', | ||
| 272 | 'doloribus', | ||
| 273 | 'asperiores', | ||
| 274 | 'repellat', | ||
| 275 | ] | ||
| 276 | } | ||
| 277 | |||
| 278 | 2 | 1; | |
| 279 | |||
| 280 | |||
| 281 | |||
| 282 | =head1 NAME | ||
| 283 | |||
| 284 | Faker::Plugin::LoremWord - Lorem Word | ||
| 285 | |||
| 286 | =cut | ||
| 287 | |||
| 288 | =head1 ABSTRACT | ||
| 289 | |||
| 290 | Lorem Word for Faker | ||
| 291 | |||
| 292 | =cut | ||
| 293 | |||
| 294 | =head1 VERSION | ||
| 295 | |||
| 296 | 1.19 | ||
| 297 | |||
| 298 | =cut | ||
| 299 | |||
| 300 | =head1 SYNOPSIS | ||
| 301 | |||
| 302 | package main; | ||
| 303 | |||
| 304 | use Faker::Plugin::LoremWord; | ||
| 305 | |||
| 306 | my $plugin = Faker::Plugin::LoremWord->new; | ||
| 307 | |||
| 308 | # bless(..., "Faker::Plugin::LoremWord") | ||
| 309 | |||
| 310 | =cut | ||
| 311 | |||
| 312 | =head1 DESCRIPTION | ||
| 313 | |||
| 314 | This package provides methods for generating fake data for lorem word. | ||
| 315 | |||
| 316 | =encoding utf8 | ||
| 317 | |||
| 318 | =cut | ||
| 319 | |||
| 320 | =head1 INHERITS | ||
| 321 | |||
| 322 | This package inherits behaviors from: | ||
| 323 | |||
| 324 | L<Faker::Plugin> | ||
| 325 | |||
| 326 | =cut | ||
| 327 | |||
| 328 | =head1 METHODS | ||
| 329 | |||
| 330 | This package provides the following methods: | ||
| 331 | |||
| 332 | =cut | ||
| 333 | |||
| 334 | =head2 execute | ||
| 335 | |||
| 336 | execute(HashRef $data) (Str) | ||
| 337 | |||
| 338 | The execute method returns a returns a random fake lorem word. | ||
| 339 | |||
| 340 | I<Since C<1.10>> | ||
| 341 | |||
| 342 | =over 4 | ||
| 343 | |||
| 344 | =item execute example 1 | ||
| 345 | |||
| 346 | package main; | ||
| 347 | |||
| 348 | use Faker::Plugin::LoremWord; | ||
| 349 | |||
| 350 | my $plugin = Faker::Plugin::LoremWord->new; | ||
| 351 | |||
| 352 | # bless(..., "Faker::Plugin::LoremWord") | ||
| 353 | |||
| 354 | # my $result = $plugin->execute; | ||
| 355 | |||
| 356 | # "nisi"; | ||
| 357 | |||
| 358 | # my $result = $plugin->execute; | ||
| 359 | |||
| 360 | # "nihil"; | ||
| 361 | |||
| 362 | # my $result = $plugin->execute; | ||
| 363 | |||
| 364 | # "vero"; | ||
| 365 | |||
| 366 | =back | ||
| 367 | |||
| 368 | =cut | ||
| 369 | |||
| 370 | =head2 new | ||
| 371 | |||
| 372 | new(HashRef $data) (Plugin) | ||
| 373 | |||
| 374 | The new method returns a new instance of the class. | ||
| 375 | |||
| 376 | I<Since C<1.10>> | ||
| 377 | |||
| 378 | =over 4 | ||
| 379 | |||
| 380 | =item new example 1 | ||
| 381 | |||
| 382 | package main; | ||
| 383 | |||
| 384 | use Faker::Plugin::LoremWord; | ||
| 385 | |||
| 386 | my $plugin = Faker::Plugin::LoremWord->new; | ||
| 387 | |||
| 388 | # bless(..., "Faker::Plugin::LoremWord") | ||
| 389 | |||
| 390 | =back | ||
| 391 | |||
| 392 | =cut | ||
| 393 | |||
| 394 | =head1 AUTHORS | ||
| 395 | |||
| 396 | Awncorp, C<awncorp@cpan.org> | ||
| 397 | |||
| 398 | =cut | ||
| 399 | |||
| 400 | =head1 LICENSE | ||
| 401 | |||
| 402 | Copyright (C) 2000, Al Newkirk. | ||
| 403 | |||
| 404 | This program is free software, you can redistribute it and/or modify it under | ||
| 405 | the terms of the Apache license version 2.0. | ||
| 406 | |||
| 407 | =cut | ||