1Mango::BSON::Code(3)  User Contributed Perl Documentation Mango::BSON::Code(3)
2
3
4

NAME

6       Mango::BSON::Code - Code type
7

SYNOPSIS

9         use Mango::BSON::Code;
10
11         my $code = Mango::BSON::Code->new(code => 'function () {}');
12

DESCRIPTION

14       Mango::BSON::Code is a container for the BSON code type used by
15       Mango::BSON.
16

ATTRIBUTES

18       Mango::BSON::Code implements the following attributes.
19
20   code
21         my $js = $code->code;
22         $code  = $code->code('function () {}');
23
24       JavaScript code.
25
26   scope
27         my $scode = $code->scope;
28         $code     = $code->scope({foo => 'bar'});
29
30       Scope.
31

METHODS

33       Mango::BSON::Code inherits all methods from Mojo::Base.
34

SEE ALSO

36       Mango, Mojolicious::Guides, <http://mojolicio.us>.
37
38
39
40perl v5.28.1                      2018-03-17              Mango::BSON::Code(3)
Impressum