logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Mango::BSON::Code - Code type

Attributes

       Mango::BSON::Code implements the following attributes.

   code
         my $js = $code->code;
         $code  = $code->code('function () {}');

       JavaScript code.

   scope
         my $scode = $code->scope;
         $code     = $code->scope({foo => 'bar'});

       Scope.

Description

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

Methods

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

Name

       Mango::BSON::Code - Code type

See Also

       Mango, Mojolicious::Guides, <http://mojolicio.us>.

perl v5.30.3                                       2020-06-05                             Mango::BSON::Code(3pm)

Synopsis

         use Mango::BSON::Code;

         my $code = Mango::BSON::Code->new(code => 'function () {}');

See Also