Mango::BSON::Code(3pm)

Mango::BSON::Code3pm

Code type

Usage

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

Overview

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

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.

Methods

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

Releases

6 releases since Debian 8 (Jessie); the text changed 3 times.

  1. 8
  2. 9
  3. 10
  4. 11–13

From libmango-perl 1.30-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.