Faker/Plugin/ColorRgbColorsetCss.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 100% 22 / 22 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Faker/Plugin/ColorHexCode.pm ↑ Summary Faker/Plugin/ColorSafeHexCode.pm »
1 package Faker::Plugin::ColorRgbColorsetCss;
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 sprintf 'rgb(%s)', join ', ', $self->faker->color_rgb_colorset;
22 }
23  
24 2 1;
25  
26  
27  
28 =head1 NAME
29  
30 Faker::Plugin::ColorRgbColorsetCss - Color Rgb Colorset Css
31  
32 =cut
33  
34 =head1 ABSTRACT
35  
36 Color Rgb Colorset Css for Faker
37  
38 =cut
39  
40 =head1 VERSION
41  
42 1.19
43  
44 =cut
45  
46 =head1 SYNOPSIS
47  
48 package main;
49  
50 use Faker::Plugin::ColorRgbColorsetCss;
51  
52 my $plugin = Faker::Plugin::ColorRgbColorsetCss->new;
53  
54 # bless(..., "Faker::Plugin::ColorRgbColorsetCss")
55  
56 =cut
57  
58 =head1 DESCRIPTION
59  
60 This package provides methods for generating fake data for color rgb colorset css.
61  
62 =encoding utf8
63  
64 =cut
65  
66 =head1 INHERITS
67  
68 This package inherits behaviors from:
69  
70 L<Faker::Plugin>
71  
72 =cut
73  
74 =head1 METHODS
75  
76 This package provides the following methods:
77  
78 =cut
79  
80 =head2 execute
81  
82 execute(HashRef $data) (Str)
83  
84 The execute method returns a returns a random fake color rgb colorset css.
85  
86 I<Since C<1.10>>
87  
88 =over 4
89  
90 =item execute example 1
91  
92 package main;
93  
94 use Faker::Plugin::ColorRgbColorsetCss;
95  
96 my $plugin = Faker::Plugin::ColorRgbColorsetCss->new;
97  
98 # bless(..., "Faker::Plugin::ColorRgbColorsetCss")
99  
100 # my $result = $plugin->execute;
101  
102 # "rgb(108, 30, 104)";
103  
104 # my $result = $plugin->execute;
105  
106 # "rgb(122, 147, 147)";
107  
108 # my $result = $plugin->execute;
109  
110 # "rgb(147, 224, 22)";
111  
112 =back
113  
114 =cut
115  
116 =head2 new
117  
118 new(HashRef $data) (Plugin)
119  
120 The new method returns a new instance of the class.
121  
122 I<Since C<1.10>>
123  
124 =over 4
125  
126 =item new example 1
127  
128 package main;
129  
130 use Faker::Plugin::ColorRgbColorsetCss;
131  
132 my $plugin = Faker::Plugin::ColorRgbColorsetCss->new;
133  
134 # bless(..., "Faker::Plugin::ColorRgbColorsetCss")
135  
136 =back
137  
138 =cut
139  
140 =head1 AUTHORS
141  
142 Awncorp, C<awncorp@cpan.org>
143  
144 =cut
145  
146 =head1 LICENSE
147  
148 Copyright (C) 2000, Al Newkirk.
149  
150 This program is free software, you can redistribute it and/or modify it under
151 the terms of the Apache license version 2.0.
152  
153 =cut
« Faker/Plugin/ColorHexCode.pm ↑ Summary Faker/Plugin/ColorSafeHexCode.pm »