Mango/BSON/Code.pm

filter: Statementstmt 100% 5 / 5 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 6 / 6 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« Mango/Auth.pm ↑ Summary Mango/BSON/Timestamp.pm »
1 package Mango::BSON::Code;
2 11 ▶use Mojo::Base -base;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 11 has [qw(code scope)];
5  
6 11 1;
7  
8 =encoding utf8
9  
10 =head1 NAME
11  
12 Mango::BSON::Code - Code type
13  
14 =head1 SYNOPSIS
15  
16 use Mango::BSON::Code;
17  
18 my $code = Mango::BSON::Code->new(code => 'function () {}');
19  
20 =head1 DESCRIPTION
21  
22 L<Mango::BSON::Code> is a container for the BSON code type used by
23 L<Mango::BSON>.
24  
25 =head1 ATTRIBUTES
26  
27 L<Mango::BSON::Code> implements the following attributes.
28  
29 =head2 code
30  
31 my $js = $code->code;
32 $code = $code->code('function () {}');
33  
34 JavaScript code.
35  
36 =head2 scope
37  
38 my $scode = $code->scope;
39 $code = $code->scope({foo => 'bar'});
40  
41 Scope.
42  
43 =head1 METHODS
44  
45 L<Mango::BSON::Code> inherits all methods from L<Mojo::Base>.
46  
47 =head1 SEE ALSO
48  
49 L<Mango>, L<Mojolicious::Guides>, L<http://mojolicio.us>.
50  
51 =cut
« Mango/Auth.pm ↑ Summary Mango/BSON/Timestamp.pm »